mmm...this can be very useful in order to write components / vendor
class that auto-extends cake framework
like adding beforeFind() callbacks to models in runtime
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
While I consider myself a fairly experienced PHP programmer, only
recently I've found the wonderful 'create_function' function which
creates an anonymous function that can be passed around as a variable
value.
This allowed me to write a class that helps working with arrays,
although it could be e
Thanks for the speedy reply i really appreciate it!
--~--~-~--~~~---~--~~
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, se
var $primaryKey = 'blah';-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @access public*/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group
My table does not utilize id - how can i set $id or override $id? I saw
a post on this sometime last year but nothing happened- Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to thi
Hi
See http://manual.cakephp.org/chapter/7 for "Interacting with your
Views" - render()
if you want to request in another controller use requestAction().
You might be confusing the MVC structure: There is function in the model
and controller files,
but not in the views (normally).
Olivvv
F
She meant they are deleting the entries in the application.Most likely they are just trying to test everything to get a feel for what is going on and don't actually mean to be malicious.If it seems appropriate I would still post the URL, but maybe back up your database before hand.
Also if before y
Thanks again everyone-
Two things-
1./usr/local/php5/lib/php.ini is where my php config file is located
when i do phpinfo() in my browser.
2./Users/milk/php.ini is where my config file is when i do php -i in
the terminal.
So i copied the php.ini from 1. to 2. and did php -i again and im still
You can try typing this in shell:
php -m | grep mysql
To see if the CLI is picking up the MySQL modules ...
- Jon
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send emai
I just did a sudo pear install PHP_Shell and was wondering if it might
be possible to do a CLI interface to Cake testing (like Rails has w/
script/console) ... I was going to try this w/ a ShellController but
not sure if Id be able to have access to Sessions and the Models ... is
anyone else think
If I have a funcion called function1, can I use a view called function2 to this function? --
Fernando AndreacciDesenvolvimentoSetti Sistemas Ltda.Fone(47)3028-2445
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
On 6/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> I know mysql is working fine on the cgi/apache side-
>
> The CLI is a diffrent story i guess, any ideas?
It shouldn't at all differ...
Do you have multiple PHP install ??
cuz both the CGI and the CLI read the same php.ini and are both
com
Thanks for your help-
I know mysql is working fine on the cgi/apache side-
The CLI is a diffrent story i guess, any ideas?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group,
On 6/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> PHP Fatal error: Call to undefined function mysql_pconnect() in
> /Library/WebServer/Documents/cake/libs/model/dbo/dbo_mysql.php on line
> 101
Looks like your PHP install does not have MySQL in.
If it's a 5.x, MySQL no longer comes in by
Seems like you need to configure your app/config/database.php in order
to make use of mysql_connect and not mysql_pconnect.
Just a guess so.
--
http://www.thinkingphp.org
http://www.fg-webdesign.de
[EMAIL PROTECTED] schrieb:
Thanks to everyone in advance - I am on
I will ... monday in the morning
thx in advance
--~--~-~--~~~---~--~~
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
Thanks to everyone in advance - I am on OS X 10.4.
/Library/WebServer/Documents/cake/scripts root# php bake.php -project
configuration
___ __ _ _ ___ __ _ _ __ __ __ _ _ ___
||__| |_/ |__ |__] |__| |__]|__] |__| |_/ |__
|___ | | | \_ |___ || | | |__] |
If you have "errors" that are disappearing by switching debug from 2 to
0,
then its not errors it is notices or warnings.
AD7six wrote:
jeannie109 wrote:
The tutorial seems to work ok even with the error message. I did find
out that if I change the debug to 0 instead of 2, it ge
jeannie109 wrote:
> The tutorial seems to work ok even with the error message. I did find
> out that if I change the debug to 0 instead of 2, it gets rid of the
> error.
With Debug set to 0, errors are not displayed in the browser, but they
are not removed.
If you rename /app/models/titles.php
The tutorial seems to work ok even with the error message. I did find
out that if I change the debug to 0 instead of 2, it gets rid of the
error.
On another note, everytime I post to this forum, and put in my URL,
some nasty person deletes all my entries. I can't believe people can
be so rude.
yea is is terrible, never mindOn 6/17/06, Olivier Percebois-Garve <[EMAIL PROTECTED]> wrote:
Are you on irc ? I have troubles to set up the p2p mode in coccinnella.
Samuel DeVore wrote:
ok if you connect to scid.is-a-geek as a peer to peer
server method you should have a document to play w
can i use a seperate table in a fuction? or should i use a new
controller?
Is it possiable? or am i asking a stupid question?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group
yes i got that thank you, but when i try to run a fuction off of the
root control, it still goes to
http://localhost/php/intros/about/
here is my route $Route->connect('/', array('controller' => 'intros',
'action' => 'index'));
i have fuctions to display other pages but they display as
http://loc
Are you on irc ? I have troubles to set up the p2p mode in coccinnella.
Samuel DeVore wrote:
ok if you connect to scid.is-a-geek as a peer to peer
server method you should have a document to play with
Sam D
On 6/17/06, Samuel DeVore <
[EMAIL PROTECTED]> wrote:
Olivier,
W
it would be better if you would paste all the code you are using in
the cakebin
http://cakephp.org/pastes/add
then give us the link that is generate.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" grou
ok if you connect to scid.is-a-geek as a peer to peer server method you should have a document to play withSam DOn 6/17/06, Samuel DeVore <
[EMAIL PROTECTED]> wrote:Olivier, We could use
http://hem.fyristorg.com/matben/ Coccinella to do this. I would be happy to host the file for a while and th
http://manual.cakephp.org/chapter/6
there should be an example of multiple selects there.
--~--~-~--~~~---~--~~
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.
if you are on php4 check that you are using var $name in your classes.
I am not familiar with that tutorial but generally that is the cause
of the overload problem.
Also, double check the class name of the model and filename to make
sure they meet the conventions.
If you still have trouble, p
Jeannie, you've probably a file at the wrong place.
Diorgenes, You need to provide more information.
How does you link look like ? maybe there is a typo in it.
Also it could be that you did not set up mod_rewrite.
Olivvv
jeannie109 wrote:
> I am just trying this out and get an error: Warning
Anyone can help me?
--~--~-~--~~~---~--~~
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]
Fo
Hi there,
is there a built-in way, or a helper to create either a multi-select or
checkboxes out of a Has-And-Belongs-To-Many relationship?
If not, do you think that would be worth a feature request?
Thanks,
Dirk
--~--~-~--~~~---~--~~
You received this messag
Olivier, We could use http://hem.fyristorg.com/matben/ Coccinella to do this. I would be happy to host the file for a while and then as we come to consensus, I'll clean it up and make a pdf/page out of it.
Sam DI'll post information on the file when I get it up and runningOn 6/17/06, Olivier Per
I am just trying this out and get an error: Warning: overload() was
unable to locate class 'titles' in /CAKE/cake/basics.php on line 74
Obviously, I did NOT change the code in basics. Can anyone tell me
what to do?
http://jobboard.bernardtransportation.com/CAKE/titles
--~--~-~--~--
:)On 6/17/06, nate <[EMAIL PROTECTED]> wrote:
https://trac.cakephp.org/changeset/3119There.Is everybody happy now??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t
Well, I have progressed .. I found out how to use the Element.hide,
within my render .. I am very bad in havascript, however using the
$javascript->codeBlock('Element..') does it..
Still on problem, how to call the same action when I do an Ajax call ?
Placing an Ajax.Request into the Ajax layout
I think it would be good to have such representation. It took me a long
time to see the big picture
of how cake is functioning, and there is still a lot of unclear thing.
The link of Nate is cool but I'm not sure how it help newbies: Look at
the step 3 where the controller is.
honestly you've to
https://trac.cakephp.org/changeset/3119
There.
Is everybody happy now??
--~--~-~--~~~---~--~~
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 unsubscri
Thanks, actually I found where my problemS are :
1) I want to call a requestAction that renders an ajax layout
* if found the solution, into the first call to my function index,
into the layout I have coded array('ajax') instead of array('return'),
that works. The menu is on the right place,
you can hide a div with javascript code. For example, using prototype
/ scriptaculous:
Element.hide('id_element')
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email
Ok here are the details :
My tests are based on the TASKS tutorial Ajax sample, basically I when
I press Done on a task, I would like to make disappear the menu...
the layout, the menu goes into the block_2 div :
requestAction('/tasks/menu/'. (isset($b1) ? $b1 : '0'));
?>
This is the
I need more details to know what's the problem. If you don't want to
display the div menu, then the requested action can return nothing
based on some params, or don't call the requestAction
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Thanks, that begin to work but small problems still
my Action requested, I placed the requestAction into the div menu
otherwise it does not render it at good place. Seems that requestAction
retrun the render the view at the place of the call.
I render the view in the view in the action like thi
Here's a very simple one:
http://cake.process141.com/files/layers_of_cake.pdf
--~--~-~--~~~---~--~~
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 unsub
put in the layout a requestAction to some controller / action in
function of the variable passed to the view
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cak
Hello,
I really like Cake and I am now learning Ajax, coming from C/C++ php
is quite easy, however not the same story for javascript and html.
Well, there is one thing I'd like to achieve using Cake and Ajax :
I have an application that can handle 3 types of users, depending on
the user logge
Hi All,
I'm looking for a graphical representation of how cake handles a
request.
I came across
http://jmp.xybyx.com/img/overview2.png
and
http://grahambird.co.uk/cake/tutorials/howitworks.php
both of which are very useful for understanding the basics, but miss
some objects.
Has anyone already
Hi Russ,
Assuming you followed the instructions in the manual regarding "Setting
the Default Route" (http://manual.cakephp.org/chapter/4), you need to
delete the * and all should work as you expect. If you did not follow
this instruction - whats the contents of your route file.
I created this ti
47 matches
Mail list logo