I asked something similar a while back and I believe the preferred way
of including your own functions goes like this.
Put your functions in a file in your "vendors" folder. Either one will
do.
Include your file in bootstrap.php using App::import('Vendor',
'basics');
That is the most Cake-friend
Thanks for the offer Grant.
R. Rajesh:
I have peeked at swx but have never got around to using it in a real
project. I have had a nice setup with CakeAMFPHP so far but now that
1.2 is pretty stable I started looking for the best companion for
remoting. I may have to give swx another look.
/Marti
Thanks for the post, Zoe - you may also want to go even one step
further and look at using the html helper for your image tags ;)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this grou
Hi
If i try to http://127.0.0.1/users/login
the following error msg will be displayed
Not Found
The requested URL /cake/users was not found on this server.
Apache/2.0.59 (Win32) PHP/5.1.6 Server at localhost Port 80
On Apr 16, 3:44 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote:
Hi,
Thanks for ur reply...
But i try to do that also not working ...
On Apr 16, 3:44 pm, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote:
> Well, if I understood this correctly, Cake is deployed in your root
> folder, so if you go tohttp://127.0.0.1/users/loginthat should be
> abou
Is it something which is planned for next versions? I see this is very
much needed when you make plugins for editor or any other module for
that matter. I'm trying to enable drop-folder plugin functionality.
Check my blog:
http://www.gigapromoters.com/blog/2008/04/15/designing-for-reusability-tak
I can't believe I read the entire chat...
Well, I guess it was important to know what is going on, as there is a
lot at stake for thousands of developers and their clients.
I think we are seeing normal (and expected) growing pains. Things
should work out. This kind of thing needs to happen soone
Check the settings of mysql and php on both platform, they are
probably different ...
On Apr 16, 11:06 am, trav <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Why does the output array from a findAll differ when run on windows
> and linux?
>
> WINDOWS
> -
> [0] => Array
> (
>
I've used something like this in the past which I keep in my
bootstrap, however I've started moving away from using this so my code
is more readable. It is very handy though when you need to access lots
of variables that might not exist.
https://trac.cakephp.org/ticket/2774
$val = v($this->param
That's weird that it crashes your browser. I tried in both Firefox and
IE6 and both worked as expected.
I haven't actually tried using the Auth component with my tutorial so
I don't know if there are any conflicts. Might try this if I get a
chance.
First thing I would try is accessing the upload
Well, if I understood this correctly, Cake is deployed in your root
folder, so if you go to http://127.0.0.1/users/login that should be
about right..?
Your controller name is wrong, "UsersControllers" should be
"UsersController", I'm assuming that's a typo.
On Apr 16, 10:48 am, KND <[EMAIL PROTE
Well, that's a shame.
* PhpNut: nobody wants you to leave!
* _nate_: still having ego problems?
* gwoo: Very nice and diplomatic approach!
If you guys don't compromise in some way, you will not be hurting each
other, you will be hurting Cake and the entire community. I know you
probably know tha
Hi all,
CakePHP is a new tool for me, I never worked on any framework
before..! To learn about CakePHP I already read
http://manual.cakephp.org pages and copy the code sample from that
manual. I installed cake in /var/www/html directory. In my Apache
server webroot is /var/www/html. Now my questi
Thanks for your answer Adam
Looking at swfupload's debug info it seems that after uploading the
file swfupload is redirected to the login action.
I've tried your tutorial on swfupload and sessions from
http://blogs.bigfish.tv/adam/2008/04/01/cakephp-12-sessions-and-swfupload/
but i causes my brow
> I've just tried this on my new project, and it's great! The only
> problem I've got is that the "prev" and "next" links don't include the
> article:3 parameter. Is there something obvious I'm missing?
After finding the previous discussions of this, I think I've fixed it
by changing the followin
Thanks for the heads up. Not that it was very uplifting to read.
On Apr 16, 8:18 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> Hate to be the one to post it here but it has to be done!
>
> http://logs.cakephp.nu/cakephp/chat.log.2008-04-16
>
> Tarique
>
> P.S. I am not fanning flames here!
grigri said:
"You can also use "{1} {2}" as the format string instead of the
sprintf() format, if you like. Personally I prefer the sprintf
format..."
Yeah, but if You have something like:
Array
(
[0] => Array
(
[Company] => Array
(
[nam
I agree with you that isset seems to be used an awful lot.
The only cure seems to be to alter the error reporting level. :(
Your function looks a lot like what the Set class does already.
(Picking things out of an array.)
Yours might be a bit faster.
Many times I find that I need a custom foreac
function viewx() {
$this->set('students', ...);
$this->render('viewall');
}
On Apr 16, 6:52 am, damo <[EMAIL PROTECTED]> wrote:
> Can't seem to figure this one out.
>
> I have two controllers that I would like to use the same view for.
> Here is how they are:
>
> function viewall()
>
Hi,
Why does the output array from a findAll differ when run on windows
and linux?
WINDOWS
-
[0] => Array
(
[View_04_score_split] => Array
(
[id] => 164
[descr] => PER
[Per_Service
I have a table foods_categories with columns: food_id and category_id (the
primary keys are food_id and category_id)
Let's say I insert the values (1,2) into this table. Let's say I want to
update the row to (1,3). How would I update this row?
Normally, if I implement the table with the columns i
Hi Damo,
The way to solve it is by using elements.
Create viewall.ctp and viewx.ctp in the views folder for your
controller.
In viewall.ctp, add this
echo $this->renderElement('studentsinfo');
?>
Add the same thing to viewx.ctp as well.
Finally, create "studentsinfo.ctp" in your vie
grigri:
Thanks, this is what I had originally thought up:
"Although perhaps you could act as if it was asymmetric, but
synchronize `friendship` table updates : if you create or delete
{subject_id: 1, object_id: 2} then you must simultaneously create/
delete {subject_id: 2, object_id: 1}. You'd
If You want declare the global functions for your application then you
have create a file in parallel to bootstrap.php like
commonfunctions.php or if you want to declare the constants for your
application like constants.php
Then you have to include the both the files in the bootstap.php then
you
Hi!
Take a look as alternative to core CakePHP translate behavior - i18n
model behavior
http://www.palivoda.eu/2008/04/i18n-in-cakephp-12-database-content-translation-part-2/
It supports translation of related models (recursive is unlimited)
during cotroller find operation.
Regards,
ros
--~--~
101 - 125 of 125 matches
Mail list logo