thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more op
I asked the same question a month ago. Someone suggested using plugins.
I have nog tried this yet, but it looks like the way to go. The only
'problem' is that it's not really hierarchical, because you can only
separate your controllers into folders, not subfolders into that etc.
See
http://groups
PHP:
selectTag('Tag/Tag', array(1,3,4), null,
array('multiple' => 'multiple'));?>
Page Source:
1
3
4
Why does the SELET have an empty option? How to make it come without
any empty option?
--~--~-~--~~~---~--~~
You received this message because you are subsc
Philip,
> I wanted to use a PHP template system with CakePHP..
Why? Please read this. [0]
> My idea was to convert the PHP variables to Javascript using JSON (but
> didn't work out how to do this successfully). Then to use these
> variables in Javascript to be passed through the Javascript temp
Hi,
I wanted to use a PHP template system with CakePHP but I don't know how
to get started.
In fact I also had a different idea which was to use TrimPath
Javascript templates
http://trimpath.com/project/wiki/JavaScriptTemplates
My idea was to convert the PHP variables to Javascript using JSON (
What you want is to set the $this->autoLayout = true for the target
controller. You can't do this where you are calling the requestAction
though, it needs to be in the execution of the target
controller/action.
The way I've done this (I email the final output), is to put:
$Route->connect('/ema
remember that the automatic redirect only works with a DEBUG set to 0
in the config/core.php
for other debug levels you have to manually click on the link
Sam D
On 8/1/06, anir <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am new to cakephp. In my controllers after adding a record, I am
> trying
On Aug 1, 2006, at 4:32 PM, anir wrote:
>
> But both are not working. I have tested this on both IE and firefox.
What is your DEBUG setting in /app/config/core.php? If it's > 0, then
flash will not redirect (so you can see your SQL or other debugging
information for that request).
-- John
Hi all,
I am new to cakephp. In my controllers after adding a record, I am
trying to use flash() to display a confirmation mesage and redirect to
my home page. But the problem is although it is showing the message in
the next page but it is far from redirecting it to the index page. It
is showing
Just to say a bit more, I found this in the article for UTF-8 on
Wikipedia:
"A badly-written (and not compliant with current versions of the
standard) UTF-8 parser could accept a number of different pseudo-UTF-8
representations and convert them to the same Unicode output. This
provides a way for
I am working on a project where in each table there is a deleted
column.
For example, I have User.deleted, Group.deleted.
The below is written by cake incorrectly (Unless I modeled something
wrong, but I must say I used the bake script to make the models,
controllers, and views then added the co
I can't seem to find the specific example I was looking for, but I did
find this when looking back in my database for one of the tests I did:
¼script¾alert(¢Another Test¢)¼/script¾
It didn't seem to cause a problem, though I don't know if that's
because of some PHP or Apache setting; my fear is
Nevermind. WidgEditor does not load if you have an onload function defined in your body tag.I had Kind of annoying. I was preloading images with my startup function.
On 8/1/06, John Zimmerman [gmail] <[EMAIL PROTECTED]> wrote:
@Jon BennettCan you post a snippet of what you did to get widgEditor w
@Jon BennettCan you post a snippet of what you did to get widgEditor working? I am trying to get it up and running but can't get it to load within cake.ThanksOn 7/24/06,
Jon Bennett <[EMAIL PROTECTED]> wrote:
> > (and this is just my personal preference), I've much preferred TinyMCE> > to FCK. I
On Aug 1, 2006, at 2:17 PM, Eric Farraro wrote:
>
> To focus my question a little further, I pointed out that in the
> Sanitize->html function, a simple find and replace was done on certain
> characters. My (very basic) understanding of XSS attacks is that they
> will often evade filters by usi
Sorry if it sounds like I made that assumption -- I guess my question
was a little too broad and the title a bit sensational.
To focus my question a little further, I pointed out that in the
Sanitize->html function, a simple find and replace was done on certain
characters. My (very basic) unders
I think to make the assumption that because no one either feels confident enough to answer the question of whether or not cleanArray or the CakePHP framework in generally protects against XSS attacks, no one understands the vulnerabilities is fairly shallow.
I think given the variety and varying
Hello,
I am working (Free) on a social networking site for a community.
I have decided to do this in cakephp. I was going to use Jsp or aspx
but for whatever reason Im' choosing CakePHP.
I am in the final stages of datbase design and i was hoping that this
community would look it over for me.
Surely someone must know a bit about XSS vulnerabilities! :)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this
If this old dog can learn this new CakePHP tricks thing then any one can.
On 8/1/06, kestrelid <[EMAIL PROTECTED]> wrote:
>
> Sorted. If the quality of this response is the future in cakePHP I have
> to look forward to, the future is bright.
>
> thanks Samuel
>
>
> >
>
--~--~-~--~--
Took another look at this issue. There *is* an easy way to access to
the Cake session from outside of the framework, you just have to
reference it correctly:
if(isset($_COOKIE[CAKEPHP])){
session_id($_COOKIE[CAKEPHP]);
}
session_start();
*not just*
session_start();
Since cake uses a spe
Sorted. If the quality of this response is the future in cakePHP I have
to look forward to, the future is bright.
thanks Samuel
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this grou
kestrelid ha scritto:
> not known to me, but you might want to try putting brackets around
Should work without modifed anything ...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this
You should try making the 5th parameter false so that it doesn't
escape the title (or the link text) in your case the image tag
Sam D
ps the api is your guide http://api.cakephp.org/ ;)
and welcome from the grumpy old man who leave short useless answers
scattered all over the place
link ($t
not known to me, but you might want to try putting brackets around
(`groups_permissions`.`group_id` = '1' AND
`groups_permissions`.`permission_id` = `Permission`.`id`).
shot in the dark? haven't tried this myself!
--~--~-~--~~~---~--~~
You received this message b
New to cakePHP so forgive me a potentially stupid question.
Creating an image link should be simple, right! I have gone through the
manual I don't know how many times. Looked through code snippets, etc.
yet I still get bogus output rather than my chosen picture as a link!
An image link as I unde
I'am try OthAuth; i can login but this query failed :
SELECT `Permission`.`id`, `Permission`.`name`, `Permission`.`created`,
`Permission`.`modified` FROM `permissions` AS `Permission` JOIN
`groups_permissions` ON `groups_permissions`.`group_id` = '1' AND
`groups_permissions`.`permission_id` = `Per
So let's build it. All i've done so far is create a custom headhelper
component that does the dojo.js include and the dojo.requires.
Everything else i'm just coding straight into the views.
--~--~-~--~~~---~--~~
You received this message because you are subscrib
Dojo is mostly working for me.
I ended up creating a headhelper singleton component that is an array
of dojo pagkages and adding it to my appcontroller.
In my layout It loops through and writes out all of the requires in the
layout. As long as there is at least one package it also puts the link
http://www.titov.net/2005/09/21/do-not-use-order-by-rand-or-how-to-get-random-rows-from-table/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegr
alepane ha scritto:
> Hi, I have used this instructions in a controller's method :
>
> $data = $this->Lavorus->sql("SELECT * FROM lavori ORDER BY RAND() LIMIT
> 1");
try this:
$data = $this->Lavorus->findAll(null,null,'ORDER BY RAND()');
--~--~-~--~~~---~--~~
Yo
Hi AD7six,
I am not sure...actually I even don't know asp...I am not sure from
where I got that file...definitely I downloaded it from prototype
website.
and can you expand on RequestHandler...I am new to CakePHP and never
used RequestHandler...but don't worry if you don't have time..I can
s
Hi, I have used this instructions in a controller's method :
$data = $this->Lavorus->sql("SELECT * FROM lavori ORDER BY RAND() LIMIT
1");
$this->set('data',$data);
But, the sql debug of CakePHP give me an error :
1064: Errore di sintassi nella query SQL vicino a 'sql' linea 1.
Can you help me ?
Hi Bingo,
Include the RequestHandler component, and it will take care of the
layout for you.
Cheers,
AD7six
PS What were asp tags doing in your prototype js file ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "
As far as the plugin thing, you can certainly try, but high-level
components like that aren't always re-useable. Certain things like
forums are definitely more trouble than they're worth to build from
scratch over 90% of the time, but with other things, the stuff that's
specific to the applicatio
Hi ,
I got it working..the problem was with properly loading prototype.js
But my default layout is getting rendered twice..it is getting repeated
within the details section also...is it possible to render without
layout
--~--~-~--~~~---~--~~
You received this me
hi
update on my pursuit...I did a fresh install of scriptaculous and now
javascript is not complaining about the illegal xml character...but I
am still getting the Event.Observe error i.e
Event.Observe is not a function
Regards,
Bingo
--~--~-~--~~~---~--~~
You r
hi,
I did some debugging using web developer's toolbar and found
this...Javascript console is showing two errors
1. illegal XML character in
http://localhost/cake/js/prototype/prototype.jsLine 1
<%= include 'Header' %>
on checking the prototype.js, here how it looks
<%=
hi AD7six,
I do have prototype.js in my webroot/js and i have included in my
layout. Is that what you meant by installing the prototype files.
About the undefined variable, actually it is being raised when the view
loads for the first time. Since at loading, no specific article is
selected, no d
Looks good, gonna try out that Eclipse plugin
On 8/1/06, Daniel Hofstetter <[EMAIL PROTECTED]> wrote:
>
> Thanks for the link, the screenshots look promising.
>
> --
> Daniel Hofstetter
> http://cakebaker.wordpress.com
>
>
> >
>
--~--~-~--~~~---~--~~
You received
im using something like this:
$content=$this->requestAction('/something/preview/'.$id,array('return'));
and ofcourse its without layout
i need to get this view with layout wraper (to save it to db or static
file)
how to achive this?
maybe other way?
i can always do something like this but i pre
On 2006-07-31 22:58:16 +0100 AD7six <[EMAIL PROTECTED]> wrote:
> If you get the text "" being output you have BOMs at the
> beginning of your files which you need to remove
The default configuration of Vim on some distributions (I think I last saw it
on SuSE 10) puts BOMs on files by default.
Thanks for the link, the screenshots look promising.
--
Daniel Hofstetter
http://cakebaker.wordpress.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-
Im also interested in getting dojo working with cake php and am having
problems would be good to hear from anyone who has succeeded.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this
Is there a good reason for not using plugins for all my app files.
Most websites I create are multiple apps i.e. forum, blog.. in a way it
seems more organised to keep these together as plugins and shared
resorces only in the app folder.
Would it also make sense to keep libraries like scriptacul
Came across a new IDE for AJAX and Web development. Supposedly you can
add in PHP support in conjunction with an Apache install. I wonder how
it will work with Cake...
http://www.aptana.com
--~--~-~--~~~---~--~~
You received this message because you are subscrib
Nate - I would like to pass in some SQL code (e.g. ORDER BY
model.field) into the autocomplete.php component. It looks like
handles is set to an array and then checked to see if it's empty?
Sorry if I am missing the obvious...
Thanks,
Jonathan
--~--~-~--~~~---~--~--
You probably want to fix that undefined variable.
Have you got
It proclaims of the Commandant in Boss Fidel Castro to the town of
Cuba.
July 31, 2006 22:26:01 GMT
With reason of the enormous effort carried out to visit the Argentinean
city of Córdoba, to participate in the Meeting of MERCOSUR, in the
closing of the Summit of the Towns in the historical Univer
Hey nate! Thanks a billion. Setting session.auto_start in php.ini did
the trick for me. I would just like to ask if there are any security
vulnerabilities in doing this, and if calling session_start() every
time would, by any chance, be more secure?
@understasis: You're right about phpBB storing
50 matches
Mail list logo