Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string name clashes on _render #4

Open
notomato opened this issue Jul 26, 2011 · 3 comments
Open

string name clashes on _render #4

notomato opened this issue Jul 26, 2011 · 3 comments

Comments

@notomato
Copy link

Can't quite find out where but when the image get's rendered the 'image' string used to place the variables gets over written by the default image string (< img src="{:path}" / >) and this is what gets output.

Changing the string name to dummyimage or something else similar fixes the issue.

@jperras
Copy link
Contributor

jperras commented Jul 26, 2011

Could you provide an example of the issue? I don't quite understand. Thanks!

@notomato
Copy link
Author

Hi - so if you use $this->dummy->image(50,50) instead of the output string being '< img src="data:{:type};base64,{:data}"{:options} / >' it is '< img src="{:path}"{:options} / >'. In Dummy.php after it generates the image it calls _render, but the string in Dummy.php (line 25) must clash with the default image string as when it renders it uses the normal image string from the html helper. If I rename 'image' on line 25 and 180 to something else it works fine. Just wasn't sure if this was just me or not, as I have other plugins and so on.

@mariuswilms
Copy link
Member

Refs UnionOfRAD/lithium#25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants