If the fpdf libraries are at all recent you shouldn't have to use the
goofy php4 constructor. I think if you add your custom pdf class to
your vendors folder and instantiate it from a custom helper as a
member variable you could do a lot more, much more easily.
I actually enjoyed this question so
Hi,
addslashes(Sanitize::html($this-data['Post']['content'],array('remove' =
true)));
This is the line I have before saving the record. But single quotes becomes
#039;
What have i done wrongly?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out
everything :)
you dont have to do anything
cake takes care of that for you
simply use h() in the views to display your data safely
On 30 Jun., 10:24, Prabha Vathi prabha.ridd...@gmail.com wrote:
Hi,
addslashes(Sanitize::html($this-data['Post']['content'],array('remove' =
true)));
This is
Ok i will check it, thanks
2011/6/30 gremlin abba.bry...@gmail.com:
If the fpdf libraries are at all recent you shouldn't have to use the
goofy php4 constructor. I think if you add your custom pdf class to
your vendors folder and instantiate it from a custom helper as a
member variable you
Does anyone know a List somewhere in the web of cakePHP PlugIns, Components,
Behaviours and Helpers besides the ones delivered in the CakePHP release?
Googleing the web and searching through GitHub repositories of some
developers is always an option, but a kind of central list with the
[0] = Array
(
[Incident] = Array
(
[id] = 37
[start_date] = 2010-10-08
[exp_date] = 2010-10-14
[incoming_num] = 453-10
[incoming_date] = 2010-10-08
)
[Detail] = Array
(
[0] = Array
(
[id] = 98
[incident_id] = 37
[comment_id] = 1
[comment_date] = 2010-10-11 10:07:29
[notify_only] = 0
)
[1] =
I am writing a CakePHP (cakephp.org) controller. One of the actions,
myAction, responds to AJAX requests. I find it annoying that if
anything goes wrong in the action handler, Cake always responds with
an error page and an HTTP status of 200, meaning that it fails
silently, so I have to open a new
i only know of http://cakepackages.com/
which is buggy, partly outdated and not really actively maintained
but might still be helpful
On 30 Jun., 13:42, Jens Dittrich jdittr...@gmail.com wrote:
Does anyone know a List somewhere in the web of cakePHP PlugIns, Components,
Behaviours and Helpers
Why don't you try to create next condition in your query,
'Detail.comment_date Incident.exp_date'
2011/6/30 Quarck quarcks...@gmail.com:
[0] = Array
(
[Incident] = Array
(
[id] = 37
[start_date] = 2010-10-08
[exp_date] = 2010-10-14
[incoming_num] = 453-10
[incoming_date] = 2010-10-08
)
http://cakepackages.com/
By Jose diaz gonzalezgonzalez the code is available on github too
- S
On 30 Jun 2011 12:42, Jens Dittrich jdittr...@gmail.com wrote:
Does anyone know a List somewhere in the web of cakePHP PlugIns,
Components,
Behaviours and Helpers besides the ones delivered in the
I have a certain validation rule that I don't want to apply in one
particular cirumstance.
The rule is based on allowing a user to create something, if they are
the 'owner' of an assoicated model.
The rule works fine most of the time, but I want to override it for a
certain usertype. This user
Could it be that this second page is coming through an ajax request?
This type of error usually pops up when you try to use the PaginationHelper
but no pagination has been done on the controller.
Cheers,
- Johan
On Wed, Jun 29, 2011 at 9:12 PM, Ed Propsner crotchf...@gmail.com wrote:
I've been
I'm pretty sure that's how it is described in the cake cookbook to do
it.
On Jun 30, 9:56 am, chris chris@internetlogistics.com wrote:
I have a certain validation rule that I don't want to apply in one
particular cirumstance.
The rule is based on allowing a user to create something, if
http://groups.google.com/group/cake-php/browse_thread/thread/89a4c9231e2f08b6
See Steves post some servers have paths set that are not specific enough
godaddy for example plus other shared hosts
- S
On 30 Jun 2011 05:53, Sanfly san...@gmail.com wrote:
With no files uploaded into the site, my
h() is being deprecated in later versions, so create a helper method
for html escaping.
On Jun 30, 2:55 am, euromark dereurom...@googlemail.com wrote:
everything :)
you dont have to do anything
cake takes care of that for you
simply use h() in the views to display your data safely
On 30
On Jun 30, 2011, at 14:13, Miles J wrote:
h() is being deprecated in later versions
Oh? By later versions I assume you mean CakePHP 2? If so, what are we being
recommended to use instead?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new
well, i dont care^^
its about the most important function ever
so if that was actually the case (which i highly doubt due to its
importance) later on
i would simply but the same function in my bootstrap
On 30 Jun., 21:43, Ryan Schmidt google-2...@ryandesign.com wrote:
On Jun 30, 2011, at
I think it was supposed to be 1.3, but most likely 2.0 now. Any of
these convenience functions like h() or r() are removed.
On Jun 30, 12:43 pm, Ryan Schmidt google-2...@ryandesign.com wrote:
On Jun 30, 2011, at 14:13, Miles J wrote:
h() is being deprecated in later versions
Oh? By later
some convenience functions do make sense to get rid of
but not h()
-1 from me
On 30 Jun., 22:32, Miles J mileswjohn...@gmail.com wrote:
I think it was supposed to be 1.3, but most likely 2.0 now. Any of
these convenience functions like h() or r() are removed.
On Jun 30, 12:43 pm, Ryan Schmidt
I'm curious why your blaming CakePHP for MySql allowing connections
outside of the webserver?
I made this error once on a live site. Someone hacked my sight
connected to the db and deleted everything in the tables.
When this happened I didn't go off and blame CakePHP or even MySql. I
knew I was
They are being removed because they are slower than the original
counter-parts. But like you said, you can place them yourselves if
they get removed :P
On Jun 30, 1:44 pm, euromark dereurom...@googlemail.com wrote:
some convenience functions do make sense to get rid of
but not h()
-1 from me
Hi
Thanks for all, it works. I found only one mistake it should be
public $Pdf = null
in helper, not private or for every method should be created method
Thanks for your help
2011/6/30 Dominik Gajewski dominikgajews...@gmail.com:
Ok i will check it, thanks
2011/6/30 gremlin
Hi there,
Is there any way to avoid user access by typing the url properly?
I mean, I just want the user interacts with my website through the
link in it, not typing the /controller/action in the url
Thx
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check
This is off topic of our normal discussions but I felt I needed to post it
to our mail list. I wrote an article about some recent happening to one of
our CakePHP community members. http://bit.ly/mDrTN7
Let's show everyone how strong our community is.
--
Larry E. Masters
--
Our newest site for
Hi,
With the (public) http://futbol.olafrv.com CakePHP (1.3) application I
have a similar problem described here:
http://groups.google.com/group/cake-php/browse_thread/thread/4eb24c599fe3f7fd/578ac0b8d3406eff?lnk=gstq=proxy#578ac0b8d3406eff
And cited here:
I am having trouble with sessions and
Modify HTMLHelper.php as said by Mile J and include the function h() code.
On Thu, Jun 30, 2011 at 3:13 PM, Ryan Schmidt google-2...@ryandesign.comwrote:
On Jun 30, 2011, at 14:13, Miles J wrote:
h() is being deprecated in later versions
Oh? By later versions I assume you mean CakePHP 2?
i highly doubt that you get any significant speed improvements out of
that
even if you use it 1000 times on a single page (which you simply
cannot)
as the view/output is compared to the huge framework itself the
smaller part of the puzzle.
anyway
most people should be made aware of those basic
did i just write thread?
i guess you all know what it is supposed to read^^
bedtime for me now
On 30 Jun., 23:56, euromark dereurom...@googlemail.com wrote:
i highly doubt that you get any significant speed improvements out of
that
even if you use it 1000 times on a single page (which you
You could, you know, use htmlspecialchars() - that's all h() is. Not
the end of the world, and it certainly makes the code more clear (h?
wtf is h?).
On Jun 30, 1:44 pm, euromark dereurom...@googlemail.com wrote:
some convenience functions do make sense to get rid of
but not h()
-1 from me
a) no, because h automatically sets the correct charset internally
b) its so much shorter. which a lot of concernated strings this is
hell to work with
thats WHY there were conv. functions in the first place
wtf is htmlspecialchars? why ever not
hypertextMarkupLanguageSpecialchars()?^^
On 1
Thanks for answering Johan :)
I tracked the problem down to passing form data via GET through an
iframe. I located where the problem was occurring, but I couldn't
figure out why. I tried a few different approaches to no avail. In any
case I resorted to using POST and Cache and the app once again
Plugin tasks should work in 1.3, I've used them in my AssetCompress
plugin.
https://github.com/markstory/asset_compress/blob/master/vendors/shells/asset_compress.php
I know for sure they definitely will work in 2.0 as well.
-Mark
On Jun 29, 2:09 am, _k10_ ketan.s...@gmail.com wrote:
h() isn't being deprecated or removed. neither is am(). Both
actually provide some utility above and beyond simple aliasing.
However, methods like r(), up(), e() and low() have already been
removed from 2.0. h() however will stick around.
-Mark
On Jun 30, 5:12 pm, Miles J
Thanks Mark for your reply.
To load a model from a plugin we use (plugin_name}.{model_name}. Same should
apply for plugins tasks as well. I was trying to use it that way, probably
thats why it was not able to find the class.
I noticed that your asset compressor task doesnt prepent plugin name.
34 matches
Mail list logo