Pass any extra data in the second parameter of the requestAction, then
look in $this->params.
$myarray = array('stuff'=>'goes in here', 'return'=>true );
$html = $this->requestAction('controller/action', $myarray);
then in the requested action, look at $this->params['stuff']
--~--~-~-
It's easy to use SQL VIEWs (nothing to do with Cake "views") to rename
fields. For example, suppose a pre-existing table called students had
an auto-incrementing primary key called student_id, and another column
called student_name. (Note that MYSQL 4 does not support views, but
MySQL 5+ does.
On 1/28/07, gobblez <[EMAIL PROTECTED]> wrote:
>
> Thanks all for the advice and tips. I ended up using some of NOSLOW's
> code, and getting it to work with Firebug instead of printing to the
> page. Firebug sorts the arrays nicely, with the [+] tree level
> thingys and such.
Yay! Gobblez you a
On 1/27/07, zipman <[EMAIL PROTECTED]> wrote:
>
>
> Is there any workaround that I can do in any lower level,
>
> in order to get transactions?
>
If you it is transactions that you want then them IMHO there is no
elegant short-cut really but if you explain what end result you are
trying to achiev
On 1/27/07, Mech7 <[EMAIL PROTECTED]> wrote:
>
> Does anybody know when this book will be released, as i like to order
> it but don't know when to expect.
+1
But I gather that the book covers version 1.2 so a proportionate wait
can be expected I guess
Cheers
Tarique
--
On 1/27/07, lukemack <[EMAIL PROTECTED]> wrote:
> Fatal error: Call to undefined function mysql_connect() in /var/www/
> cake/libs/model/dbo/dbo_mysql.php on line 102
Might sound like a silly question - but can you connect to MySQL using PHP?
If not then you need to install whatever is the equiv
Yeah, now that you mention it, I agree, it is a bit of work and less
convenient with lots of clicking! I like your docking pane idea, it
would fix my worry (and reason I went the Firebug route) of having
styles clashing, particularly width of my layout. I was mostly just
itchy to see if I co
It certainly works! One of my client's database was built before I
took over. It used to be spaghetti-code PHP that I have (mostly)
converted to CakePHP. This database has as primary keys user_id,
j_id, prodid, etc. A foreign key to user_id may be j_owner and to
prodid is rfc_prodid.
You
Have the same problem, when using solution from bakery (http://
bakery.cakephp.org/articles/view/176). Everything goes fine until I
have to get something out from db. Anyone?
Running on cake 1.1.12.4205
Thanks in advance
--~--~-~--~~~---~--~~
You received this
http://manual.cakephp.org/chapter/views
Read the "Layouts" section.
On Jan 27, 4:47 pm, "Mech7" <[EMAIL PROTECTED]> wrote:
> Is there any tutorial how i could create templates for an application?
> So i would have one directory with all the views and can switch them
> for different styles ?
--
you really should make an article in the bakery for this
http://bakery.cakephp.org/
Please it should be captured for people
Nice work
Sam D
On 1/27/07, gobblez <[EMAIL PROTECTED]> wrote:
>
> Thanks all for the advice and tips. I ended up using some of NOSLOW's
> code, and getting it to work w
Nice work, gobblez! Very streamlined, efficient and commented nicely.
It was a breeze to install in my project. Thanks for sharing!
Just had one tweak to make since I didn't have any components in my
project:
if (isset($var->controller->components))
$g
Thanks all for the advice and tips. I ended up using some of NOSLOW's
code, and getting it to work with Firebug instead of printing to the
page. Firebug sorts the arrays nicely, with the [+] tree level
thingys and such.
http://bin.cakephp.org/view/591087419
--~--~-~--~~
Does anybody know when this book will be released, as i like to order
it but don't know when to expect.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-ph
Is there any tutorial how i could create templates for an application?
So i would have one directory with all the views and can switch them
for different styles ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Ca
Excellent! Thank you, that worked perfectly.
--~--~-~--~~~---~--~~
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 emai
Is there any workaround that I can do in any lower level,
in order to get transactions?
--~--~-~--~~~---~--~~
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.
hi,
i'm trying to run acl.php from the command line on linux: php acl.php
initdb but get the following error:
Fatal error: Call to undefined function mysql_connect() in /var/www/
cake/libs/model/dbo/dbo_mysql.php on line 102
someone mentioned that php cli might not be configured with mysql
su
Hi,
I'm getting this error when selecting M, V, or C in bake.php (running
from command line on linux - Ubuntu 6.10 with php 5.1.6 & Apache 2)
Fatal error: Call to undefined function mysql_connect() in /var/www/
cake/libs/model/dbo/dbo_mysql.php on line 102
I haven't changed the database access
Thanks for your guys' help. Very helpful.
I'm trying to make this as simple as possible, so for now, I think
I'll go with Tarique's advice. As far as the mod_rewrite, Hostgator
support told me that "I can create a mod_rewrite in .htaccess".
Didn't know I could.
Very new to Apache con
I can see two different things going on here: (1) the anchor is being
generated, and you don't want it, and (2) you want to change the color
that is associated with the CSS class "warning_msg".
For item one, it could be a third party vendor or error layout view
file that are adding the anchor; ar
OK I found the problem - I believe it's a bug in PaginatorHelper but I
do have a workaround. In the 2007.01.24 nightly on line 249 of
PaginatorHelper is the following code in the __pagingLink method:
$url = am(array('page' => $paging['page'] + ($which == 'Prev' ? $step
* -1 : $step)), $url);
Hi,
Unfortunately I haven't a URL to show you. This is web app i'm
developing is to use "in-house" only...
But I can gladly paste the code you asked for. :-)
The VIEW code is as follows:
There are no hierarchies on
this
network! ';
}
else
{
foreach($
Let's suppose your host do have a setup like this, when you do an ftp:
/ < your root, you cannot go to parent folder
/public_html < the docroot folder
no you create a 'cakeapps' folder and a 'cake' folder
/
/public_html
/cakeapps
/cake
now, you copy your whole app fol
Following on from the first post.
I got that error when viewing the application at www.mydomain.com/
When I view the application at www.mydomain.com/uploads/index/ i get a
different error:
Error: progressTracker Data has a wrong format!
You can create some variable (var $myValue = null;) and set it in
beforeFilter() method ($this->myVar = true;).
Or: You can just use $this->set('myVar', true); and then inside of
controller's action check content of $this->viewVars['myVar'];
--~--~-~--~~~---~--~~
Morning all,
I have downloaded and installed this excellent demo of an Ajax upload
script from:
http://www.thinkingphp.org/2006/04/27/an-ajax-file-upload-progressbar/
I have searched this group for the error I am getting as I know a few
of you have used this script before now but cant find any
27 matches
Mail list logo