Thats what I was thinking of doing JZ.
Write an intermediate function to automagically store the old DBC
settings, do my thing, then restore the old DBC settings.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cak
On 9/23/06, Bert Van den Brande <[EMAIL PROTECTED]> wrote:
I smell .. spam ?No, google groups is just choking on posts the last couple days.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to
On 9/24/06, leea <[EMAIL PROTECTED]> wrote:
Mate, I appreciate the feedback and comments :)Im going to rewrite the classes.Its just a shame that you cant use these old classes.The cake RAD is just so incompatible with php objects it feels like im
working with a new language rather than a new framew
Mate, I appreciate the feedback and comments :)
Im going to rewrite the classes.
Its just a shame that you cant use these old classes.
The cake RAD is just so incompatible with php objects it feels like im
working with a new language rather than a new framework. Ive had
similar problems with ca
I have used classes within my CakePHP controllers that connect to the database independently of the Cake database connection code.I posted a snippet that will get me the database configuration details in dsn format that I can pass to the class when I create an instance of it. If your classes accep
sorry, just to clarify. you mean you have to rewrite your old classes
(what would be models in CakePHP) to use the Cake method of accessing
the database?
is this correct?
if i'm understanding correctly you might still be able to write a
component that would represent your old DBC that can be use
My issue is more about the fact that I cant use my old classes that
have their own DBCs.
I have to rewrite them as a cake model to adhere with the way cake
works with DBCs.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
to my knowledge CakePHP handles multiple database connections quite easily.
within your /app/config/database.php file you can define multiple
connections that can then be accessed within your model.
e.g.
var $conn1 = array('driver' => 'mysql',
I have a class that was written before cake. It accesses a database
using mysql_connect. This class works perfectly and lot of my
applications that i develop use this class.
Im transferring this class across to cake, but unfortunately it
confuses cake with the db connection.
>From what ive read,
Hi..
Finally after trying hard, I got Ajax autocomplete working. The problem
was with effects.js and control.js
Somehow IE was not raising problem in locating effects.js but firefox
was
I added following include list in my default template
print $html->charset('UTF-8');
echo $ja
jEdit and vim here.
jEdit has a rather nice plugin architecture, and it would be really nice
to see something Cake-related but I've never been sure what other people
would want. Anybody want to contribute?
Lamby
--
Chris Lamb, Cambs, UK WWW: http://chris-lamb.co.uk
Q.
You can render whatever template you want, but redirecting to the
corresponding controller action is recommended. If you use the same
action to render templates for other actions, you could end up
duplicating controller logic.
--~--~-~--~~~---~--~~
You received t
Thanks for your quick answer :)
I guess I'll go for the CubeCart-in-a-folder solution.
This will be a *very* simple shopping cart, so CubeCart's functionality
(on the shopping cart portion of the site) is more than adequate,
luckily (since my client insist that I use it).
The site as a whole wi
that's how i do it.
whenever i'm saving a model I know that whatever is in the data array
at the time will be what is saved. so, how you get the foreign key in
there doesn't really matter (at the view or in the controller) as long
as it is in there it will be saved to the DB.
does that answer yo
you could also use the following format:
/Items/new/whatever
then within your Items controller
function new($page) {
}
I'm pretty sure Cake allows you to define as many parameters as you
want in this way:
/Items/new/whatever/more/parameters
then within your Items controller
function new
Okay, I figured out how to do this. My link looks like this:
$html->link('New Item', '/Items/new?page=whatever');
And inside my controller I use this:
$this->params['url']['page'];
The key was to use $this->params which contains all kinds of good
stuff. However, I ended up taking a slightly diff
Hi all -
2 newbie questions, as I'm new to php and new to cakephp (much previous
asp).
1) In my cakephp readings, I've seen that you're supposed to call
exit() after a redirect(). Thus in this action:
function add($uid=null,$yuid=null) {
if(!$uid OR !$yuid) {
OK I got bake working using the hack described here:
http://www.soledadpenades.com/category/cakephp/
And even with a baked version, I still have the problem. I can't
imagine this is such a hard thing to overcome, can someone please help
me? I'm pulling my hair out, I've been stuck at this point
Thanks for both answers.
I didn't reply before, since all of a sudden it started behaving as
expected, and I had no idea why. Kept investigating.
Today it happened again (that is, there was a redirect(...) who
redirected to the root of the web site, stripping the /app prefix from
the URL), and th
Thanks for both answers.
I didn't reply before, since all of a sudden it started behaving as
expected, and I had no idea why. Kept investigating.
Today it happened again (that is, there was a redirect(...) who
redirected to the root of the web site, stripping the /app prefix from
the URL), and th
I am using PHPEclipse - setup and all was trivial.
The only tricky part (for me) was to get DBG up and running.
(I can try to find the tutorials for setting up debugging env.)
Once set up, all works very nicely. Editing and debugging is a piece of
c***.
Also, if someone is interested, I tried PHP
I am using PHPEclipse - setup and all was trivial.
The only tricky part (for me) was to get DBG up and running.
(I can try to find the tutorials for setting up debugging env.)
Once set up, all works very nicely. Editing and debugging is a piece of
c***.
Also, if someone is interested, I tried PHP
Excellent !!! Thanks much NATE !!! You're trully cake BAKER !!! :-)
Thanks a lot
Its completely clear, and working !!
Maybe there should be section for cake rookies with these short tips on
bakery.cakephp.org cause this little beasts operations which are little
different in Cake framework than i
seems like this list as developed an echo echo echo echo echoOn 9/24/06, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:Cheers guys, it's working now!--~--~-~--~~--
--~---~--~~You received this message because you are subscribed to the Google Groups "Cake PHP" group.To pos
Hi,
I am trying to get autocomplete working but having troubles.
I included prototype and scriptaculous libraries in my default
template. Everything works fine in IE but firefox doesn't seem to like
the setup.
Firebug reports an error message stating that Ajax.Autocompleter is not
a constructor
I've been struggling with this piece of element code:
http://cakephp.org/pastes/show/02819fdeb95764a19c0d5e008c638f22
as you can see, when i put a die() inside the if branch, everything is
normal, but when i replace die() with echo(), i don't see the output of
the echo function, i don't see any o
(1) There are several different syntaxes you can using for finding
records, including:
$this->Post->find("Post.id = {$id}");
$this->Post->find(array("Post.id" => $id));
$this->Post->findById($Id);
The first way is not recommended, since it leaves you open to SQL
injection attacks.
(2) The checkb
Cheers guys, it's working 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 unsubscribe from this group, send email to [EMAIL PR
Cheers guys, it's working 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 unsubscribe from this group, send email to [EMAIL PR
Oh, yeah, gwoo - too quick to respond. It's the model, stupid! sheesh.
thanks for catching that.
--~--~-~--~~~---~--~~
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@googl
Thanks much again nate !! You're helping me a lot :-)
Its now clear about $this->Post-Comment. Thanks.
with DB everything seems allright. I tried nearly any possible SQL
mods, and this a little bit mysterious syntax works for me :
$this->Post->find("Post.id = ' {$id} ' "); :-) I do not know why
@Zack, your php syntax is off. functions must be in methods of the
class.
@Toby, nice idea, but $uses is a property of the controller not the
model and actually pertains to models not utility libs.
this will work:
class User extends AppModel
{
var $name="User";
function befo
9th attempt to submit
While wiki is available:
http://wiki.cakephp.org/tutorials:cake_migrations
--~--~-~--~~~---~--~~
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@g
Try here:
http://api.cakephp.org/class_html_helper.html#db855761321338874ca6ae5c34d9366a
and here:
http://api.cakephp.org/class_html_helper.html#0a0a7c56c21b7d7352fd99158350dfc5
As far as the $this->Post->Comment syntax, that's assuming you're
accessing it from PostsController, in which case Post
And just one thing...I can't find it explained in manual or in API, or
in tutorial. And this thing is $HTML->checkbox() and $html->selectTag()
It simply do not work as I expected. And now I am stucked with some
"not class" error and some "offset" error...
I just want to make 3 checkboxes in sin
try this:
class User extends AppModel
{
var $name="User";
var $uses = array('sanitize');
...
}
HTH
[EMAIL PROTECTED] wrote:
> My model looks like this:
>
> class User extends AppModel
> {
> var $name = 'User';
> uses('sanitize');
> ...
> }
--~--~-
My model looks like this:
class User extends AppModel
{
var $name = 'User';
uses('sanitize');
...
}
And I am receiving the following error as a result: parse error,
unexpected T_STRING, expecting T_FUNCTION
If I comment out the "uses" line above, everything works fine. I
Hi nate !! Thanks very much for answer&tip :-) sory for multiple-posts
above, but my browser seem to freeze, and I was a little bit unpatient
:-)
Ok, thats clear. It will be fine if we can define if we want to save
all assoc model in one step, or use this single step way. But tell me
wha we must
And thanks much for all your suggestions and help !!! Have a nice day
:-)
--~--~-~--~~~---~--~~
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
Well, you're quite welcome ;-)
First of all, when using Model::save, only data for the model itself,
as well as links to any hasAndBelongsToMany associations. So if the
model has data for other associated models, you have to save it
manually.
Let's say you have two models: Post hasMany Comment,
And thanks much for all your suggestions and help !!! Have a nice day
:-)
--~--~-~--~~~---~--~~
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
And thanks much for all your suggestions and help !!! Have a nice day
:-)
--~--~-~--~~~---~--~~
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
And of course thanks much for suggestions&help !! Have a nice day :-)
--~--~-~--~~~---~--~~
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
And of course thanks much for suggestions&help !! Have a nice day :-)
--~--~-~--~~~---~--~~
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
Hi to all bakers!
1.I would like to ask how form submision work with model which has
associated models ? I mean are there only defined form fields updated
(when saving $this->data) or all associated model/field are updated ? I
mean if I have TABLE( has many FIELD) model and FIELD model( belongs t
I've tried baking it, but I have problems with that as well...
apparently mysql isn't compiled on the command line on my system, so it
fails when I try and bake. I'd rather just fix the problem here.
Anyone have any ideas? Can I provide more information to make this
question easier to answer?
All the data is available inside the model as an array, and can be
referenced as $this->data.
--~--~-~--~~~---~--~~
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@googlegro
I run Eclipse (www.eclipse.org) with PHPEclipse
(http://sourceforge.net/project/showfiles.php?group_id=57621). I can't
recommend these tools enough. Cross-platform, cross language, open
source, with one the most brilliant and powerful interfaces I have come
across, well, ever. The only tricky p
I run Eclipse (www.eclipse.org) with PHPEclipse
(http://sourceforge.net/project/showfiles.php?group_id=57621). I can't
recommend these tools enough. Cross-platform, cross language, open
source, with one the most brilliant and powerful interfaces I have come
across, well, ever. The only tricky p
On Sat, 23 Sep 2006 16:41:59 -0700
"BlenderStyle" <[EMAIL PROTECTED]> wrote:
>
> I'm curious to know what text editor everyone's using. I'm all
> about free stuff, so I've been using PSPad. It's pretty good, I
> guess, but I'm looking for something that's available on all
> Windows and Linux. I
I am using macromedia (adobe) homesite, for several years now... I
started when It was the software of Allaire!
I think is one of the best... full costumizible...light enough... it;s
pitty macromedia doesnt care enough to make some updates... homesite is
integrated into dreamwever too
--~--~---
I have used PHP Edit for some time now.
http://www.waterproof.fr/
--~--~-~--~~~---~--~~
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
I am using macromedia (adobe) homesite, for several years now... I
started when It was the software of Allaire!
I think is one of the best... full costumizible...light enough... it;s
pitty macromedia doesnt care enough to make some updates... homesite is
integrated into dreamwever too
--~--~---
> TextWrangler is a pretty decent lightweight text edtior for OS X.
TextMate...
jb
--
jon bennett
t: +44 (0) 1225 341 039 w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett
--~--~-~--~~~---~--~~
You received this message because you are subscr
I am using macromedia (adobe) homesite, for several years now... I
started when It was the software of Allaire!
I think is one of the best... full costumizible...light enough... it;s
pitty macromedia doesnt care enough to make some updates... homesite is
integrated into dreamwever too
--~--~---
I am using macromedia (adobe) homesite, for several years now... I
started when It was the software of Allaire!
I think is one of the best... full costumizible...light enough... it;s
pitty macromedia doesnt care enough to make some updates... homesite is
integrated into dreamwever too
--~--~---
I am using macromedia (adobe) homesite, for several years now... I
started when It was the software of Allaire!
I think is one of the best... full costumizible...light enough... it;s
pitty macromedia doesnt care enough to make some updates... homesite is
integrated into dreamwever too
--~--~---
I am using macromedia (adobe) homesite, for several years now... I
started when It was the software of Allaire!
I think is one of the best... full costumizible...light enough... it;s
pitty macromedia doesnt care enough to make some updates... homesite is
integrated into dreamwever too
--~--~---
I am using macromedia (adobe) homesite, for several years now... I
started when It was the software of Allaire!
I think is one of the best... full costumizible...light enough... it;s
pitty macromedia doesnt care enough to make some updates... homesite is
integrated into dreamwever too
--~--~---
I am using macromedia (adobe) homesite, for several years now... I
started when It was the software of Allaire!
I think is one of the best... full costumizible...light enough... it;s
pitty macromedia doesnt care enough to make some updates... homesite is
integrated into dreamwever too
--~--~---
In this case, as far as I can tell, it's actually because Vertrigo
doesn't come with the PHP CLI. You just need to install it separately,
as I mentioned in an email reply to TWIOF before. I've not used the
bake script for quite some time so I've never noticed the lack.
--~--~-~--~~--
61 matches
Mail list logo