No,
I don't want 'Submit' button. I just want a button with some
destination.
On Oct 25, 9:33 pm, dixon_ <[EMAIL PROTECTED]> wrote:
> Hi!
>
> Are you sure you dont mean "submit button"? If thats the case you
> should use:
>
> $form->submit('Example');
>
> On 25 Okt, 13:59, senser <[EMAIL PROTECT
Rajesh,
Let us know what you tried to do? Where exactly you are facing a
problem. Did you ty searching the list and google
T
On 10/25/07, Rajesh <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> I am new to cake PHP and i am using version 1.1.17. I am little
> confused as to how to handle image uploads
unfortunately, it's a known issue!
On Oct 25, 11:29 pm, DanielMedia <[EMAIL PROTECTED]> wrote:
> Is this the correct url for downloading nightly builds?
>
> http://cakephp.org/downloads/index/nightly/1.2.x.x
>
> When I download the ".gz" file its only 1kb in size and when I extract
> it, it just
Try `svn co https://svn.cakephp.org/repo/branches/1.2.x.x/` : ).
-- Felix
DanielMedia wrote:
> Is this the correct url for downloading nightly builds?
>
> http://cakephp.org/downloads/index/nightly/1.2.x.x
>
> When I download the ".gz" file its only 1kb in size and when I extract
> it, it just an
Is this the correct url for downloading nightly builds?
http://cakephp.org/downloads/index/nightly/1.2.x.x
When I download the ".gz" file its only 1kb in size and when I extract
it, it just an empty folder.
--~--~-~--~~~---~--~~
You received this message because
e
that just orders the cookies, and doesn't sort the bakers. The same
goes for setting 'Cookie.quality' as the sorting parameter in the
find() call.
Of course I could just sort the bakers afterwards with my own custom
sort function, but is there a way to do this automagically?
__
Great, Thanks AD7... I'll try it out.
--~--~-~--~~~---~--~~
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 [E
I think when you call a model function that is not a function in your
app_model derived model, cake tries to pass ti to the db.
If you do from a controller, $this->Model->myfunction and my function
does not exist in model, you get a Db error as "unkown function in
MySql"...
Maybe (I haven't tried)
If you do that time check in the controller afterFilter() it shouldn't
be too far from the correct time. You are correct that checking it in
a controller action could easily be misleading.
On Oct 26, 4:47 am, "J. Eckert" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> That doesn't make sense.
> In your Co
Make a model FacetsReviewsTags, for the join table
Review hasMany FacetsReviewsTags
Facet hasMany FacetsReviewsTags
Tag hasMany FacetsReviewsTags
FacetsReviewsTags belongsTo Review, Facet, Tag
The FacetsReviewsTags model should have a beforeSave to check for
existing join rows.
The only tricky
The problem is that if all your models are related, then even just
using one will mean that all model classes are loaded. We have an app
here with 34 models, and about 25 of them are associated (up to five
degrees of separation). These 25 models will be loaded for virtually
every page request, e
Hi, I've read through the cake php manual and searched through the
cake bakery site but have not found out how to do the following model:
Reviews table
(1)
|
|
(*)
FacetsReviewsTags (*)--- (1)Tags table
(*)
|
|
(1)
Facets table
sorry for the appalling ascii art
I don't want to resolve t
Hrmm.. okay -- digging into this further.
Looks like I was using the wrong database driver. I should have been
using 'mysqli' instead of 'mysql'.
On Oct 16, 11:11 am, cmbg <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Just thought I'd post my workaround based on some of the posts here
> but I didn't
No, actually my problem is with loading models from the controller.
Debugging the code shows that loadModel (in cake/basics.php) is trying to
load: "cake_blog\app\plugins\MiBlog\models\blog.php", it should be
"cake_blog\app\plugins\mi_blog\models\blog.php".
I added: $name = Inflector::underscore(
Ryan, quick update - my issue seems to come when doing $this-
>requestAction('plugin/method') from either a view or an element, is
this the case with you?
On Oct 25, 1:46 pm, McFadly <[EMAIL PROTECTED]> wrote:
> Ryan - I'm having the same problem. Have you found a solution?
>
> On Oct 25, 8:35
i put it in core.php like this and stil error :(
// File storage engine.
//default dir is /app/tmp/cache/
Cache::config('default', array('engine' => 'File', //[required]
'duration'=> 3600, //[optiona
Hey there bakers.
I couldn't find an appropriate answer to this anywhere. Suppose I have
three models:
Bakery <- hasAndBelongsToMany -> Baker <- hasAndBelongsToMany ->
Cookie
Suppose there is a cookie baking contest going on. Every cookie is
rated for quality (int Cookie.quality). I would like
Nope, that doesn't change anything at all
The problem is with the way the condition gets used.
In the example above, where Lessons belongsTo Parts, calling something
such as
$this->Lesson->findAll(array('Part.id' => 1)) will, in fact, return
all lessons attributed to a part with that id.
Is anyone having difficulty upgrading to 1.2 pre-beta from a 1.1 or
earlier 1.2 lines when using MAMP? I've got all my htaccess files
configured as normal, as well as MAMP's Apache documentRoot pointing
to the right path, but this latest release sees Safari timing out when
attempting to light it
Ryan - I'm having the same problem. Have you found a solution?
On Oct 25, 8:35 am, "Ryan Rose" <[EMAIL PROTECTED]> wrote:
> Has anyone else experienced problems with loading plugin models using the
> 1.2.0.5875 pre-beta release? The standard "Missing Model" error message says
> it expects the m
At the momentary state of documentation you have to go through the
source at some points to find your answers (especially on the option
arrays).
But in general the team uses quite good naming conventions, so most of
the options are self-explanatory...
For clean() i could find some in a sec..
00
> I think the best way to do this on the server side is to name the
> submit buttons - only the one pressed gets passed on to the server
> side, so you can check for this to decide how to handle the form
> submission.
Jepp, thats the best solution if you work with the Input-Submit-
Buttons (http:
Because you are missing the $this->Lesson->recursive = 1;
On Oct 25, 3:25 pm, EVan <[EMAIL PROTECTED]> wrote:
> No, the idea is to search Lessons and find lessons with a specific
> piece.
>
> In other words
>
> $resultArray = $this->Lesson->findAll(array('Piece.id' => '1'));
>
> This doesn't
Playing around more, the saveField problem seems to not occur in PHP
5, only in PHP 4.
Any ideas?
On Oct 24, 2:42 pm, daphonz <[EMAIL PROTECTED]> wrote:
> I have a Categories Model that references itself to create Child
> Categories. It also has multiple Has Many associations with other
> mod
Hi,
That doesn't make sense.
In your Contoller the page hasn't been yet completly parsed ... so you
won't get a correct page loading/parsing time.
This:
round(getMicrotime() - $TIME_START, 4)
tells you how many seconds passed after Start, but in your Controller
it wouldn't be equal to the comple
Hi!
Are you sure you dont mean "submit button"? If thats the case you
should use:
$form->submit('Example');
On 25 Okt, 13:59, senser <[EMAIL PROTECTED]> wrote:
> Tonight I upgraded CakePHP to latest release - 1.2.0.5875-pre-beta ana
> all buttons in layouts of my currently developed application
No, the idea is to search Lessons and find lessons with a specific
piece.
In other words
$resultArray = $this->Lesson->findAll(array('Piece.id' => '1'));
This doesn't work though.
On Oct 25, 1:58 pm, rtconner <[EMAIL PROTECTED]> wrote:
> You want to search Pieces and list the lessons rela
Just POM ( Plain old move_uploaded_file() )
On Oct 25, 12:00 pm, Paolo <[EMAIL PROTECTED]> wrote:
> I have the same problem too, any help please?
>
> On 25 Ott, 05:09, Rajesh <[EMAIL PROTECTED]> wrote:
>
> > Hello,
>
> > I am new to cake PHP and i am using version 1.1.17. I am little
> > confused
Thanks guys -- here's what has worked, and it is much less than the
global replace I initially was afraid of. It also preserved all my
action names, urls, and things exposed to a user (potentially).
Although "catch" is a php5 keyword it is only forbidden in constants,
class names, and function nam
You want to search Pieces and list the lessons related to those
pieces?
$this->Lesson->Piece->recursive = 1;
$this->Lesson->Piece->findAll(array("Piece.name LIKE '%asd%'"));
or to just get all lessons and thier related pieces
$this->Lesson->recursive = 1;
$this->Lesson->findAll();
On Oct 25,
4 hours later, still can't figure this out.
I've found that...
$this->Lesson->Piece->findAll(array('Piece.id'=>'1'));
will return some Lesson info...
but I was under the impression
$this->Lesson->Piece->findAll() was incorporated in
$this->Lesson->findAll()
?
On Oct 25, 12:21 pm, EVan
Alexandr and Wayne ! you saved my life!!
Thanks so much.. it's so simple I feel confused ^_^
I did not look closer to the spelling (and may have been tired of
breaking my teeth)
The trick is just to define the type of 'id' as INTEGER instead of
INT (and to set it as PRIMARY)
This is somet
OK, finally got it for real:
Router::connect('/admin/', array('prefix'=>'admin','controller' =>
'tips', 'action' => 'index'));
'prefix'=>'admin' was the key.
On Oct 25, 10:26 am, hydra12 <[EMAIL PROTECTED]> wrote:
> OK, I was wrong. I grabbed the latest (pre-beta), then I grabbed the
> latest
Thinking about it more... You should probably be able to get away with
just the $uses = Katch and the class Katch model name change, plus the
$this->Katch changes.
This would allow you to keep your CatchController etc which keeps your
URLs looking like you want.
Or you could just add some routes
In your controller, you'd need $uses = array('Katch');
Here's what I would do:
1. Commit all your code into SVN.
2. Do a global find and replace Catch for Katch in your files.
3. Do a global find and replace catch for katch in your files.
4. Fix the $name in model Katch.
That should generally f
Ive had to do similar in the past, off the top of my head:
I think the best way to do this on the server side is to name the
submit buttons - only the one pressed gets passed on to the server
side, so you can check for this to decide how to handle the form
submission.
As I said, this was a whiil
On 10/25/07, Freight <[EMAIL PROTECTED]> wrote:
>
> What do you think? How many models do you have succesfully in one
> CakeApp? What do you think, is the max-number of possible Models, so
> that Cake still works stable?
I don't think there is any limit to how many models you can use, but
it does
On Oct 25, 2007, at 10:34 AM, Freight wrote:
>
> Hello,
>
> I am building a Webapp with Cake and love it very much. The
> Application have about 30 models. The problem is, that it will
> increase over the time. Now I wonder, if it could be better to divide
> the Webapp into different CakeApps to
We are trying...
So would this have a chance?
In model:
class Katch extends AppModel
{
var $name = 'Catch';
And in controller
var uses = array('Catch')
Also wouldn;t we have to change every reference to the Catch model
($this->Catch... to $this->Katch) and all references to the data i
Hello,
I am building a Webapp with Cake and love it very much. The
Application have about 30 models. The problem is, that it will
increase over the time. Now I wonder, if it could be better to divide
the Webapp into different CakeApps to reduce the amount of models per
CakeApp in future.
What do
Okay forgot that that site doesn't show the buttons. As of now
you would have to do something like this:
... which you probably already know. lol. Anyway... tried to help.
Daniel
On Oct 25, 7:59 am, senser <[EMAIL PROTECTED]> wrote:
> Tonight I upgraded CakePHP to latest release - 1.2.0
I'm on day two of trying to figure this out, we'll see if this helps.
I've got three Models. Lessons belongsTo Parts and Lessons HABTM
Pieces (and vice-versa)
Here's the model definition for Lessons, pretty straightforward.
class Lesson extends AppModel {
var $name = 'Lesson';
you could use $ajax->submit. You can specify the url into the the
parameters thus they can be different.
On Oct 25, 5:47 pm, Chambrln <[EMAIL PROTECTED]> wrote:
> I would suggest trying to capture the event on the controller side and
> process your data accordingly.
>
> Perhaps you should just pu
Hey Guys check this out for help:
http://www.donutczar.com/cake1point2/donuts/
Got me going in the right direction.
Daniel
On Oct 25, 7:59 am, senser <[EMAIL PROTECTED]> wrote:
> Tonight I upgraded CakePHP to latest release - 1.2.0.5875-pre-beta ana
> all buttons in layouts of my currentl
Getting a little frustrated with Cake API and the manual for 1.2. Can
some one tell me where to find the "options" for anything? Say for
instance the function Sanitize::clean(). clean() takes to arguments,
the first being the data to clean. The second is an array for
"options". What options?
To disable Zend optimiser you need to comment the lines in php.ini.
On Oct 25, 5:01 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I tried the following:
>
> 1. lemp>>Replace __("CakePHP: the rapid development php framework",
> true) ... did not work
>
> 2. Kunthar>>adding "php
This might not be what you want to hear, but I did something like
this:
/events/view/my-event-name/
/events/tellafriend/my-event-name/
/events/video/my-event-name/my-video-name/
At least now I can keep the functionality separate as it should be,
and I can change the additional arguments for each
It sounds like you are wanting to render links for the site. I would
suggest making it an element and placing the html in /views/elements/
sitelinks.ctp
then you can use echo $this->renderElement('sitelinks'); in your
view where you want the links to show up.
On Oct 24, 4:16 pm, "David Coll"
I don't know which version you are using, but if you are using 1.2.*
the file needs to be named index.ctp in that folder
On Oct 25, 2:26 am, Thomas Armstrong <[EMAIL PROTECTED]> wrote:
> Hi.
>
> I'm trying to create a simple sample to test CakePHP, and I'm
> following the steps from:http://graha
I had the same problem yesterday. I don't use buttons regularly, but
wanted to on a form. Got the same message that you did. If you look
in the core in the form helper it dies before it processes any code.
I'm guessing they haven't worked out the bugs yet.
I would suggest if you want to use bu
I would suggest trying to capture the event on the controller side and
process your data accordingly.
Perhaps you should just put a checkbox on the form so the user can
select to "Delete" or "Flag" the application. Then you just need 1
submit button.
--~--~-~--~~~--
Good!
I did three things:
1. Uncomment the "extension=php_ldap.dll" line in php.ini file.
2. Copy "ssleay32.dll" and "libeay32.dll" to SYSTEM dir (I'm using
WAMP).
3. Go to WAMP task manager > PHP Settings > PHP Extensions > enable
php_ldap
Seems like working, hope it works to others.
On Oct
Hi keymaster...
This is due to how flash loads relative URLs. When embedded into html,
flash loads urls relative to the HTML, not the swf file. If you load
the swf directly, it IS relative to the swf file.
So if you embed a swf in the page "/products/view/1", and then from
that flash movie you l
Managed to find the problem. Will document it here for those that
follow. Thanks to all who helped.
The way I figured out what was going on, was by looking at the apache
server access logs, and seeing what url was being generated to load
the original flash file, as well as the subsequent urls gen
OK, I was wrong. I grabbed the latest (pre-beta), then I grabbed the
latest from svn. It still doesn't work. Any thoughts?
On Oct 25, 10:06 am, hydra12 <[EMAIL PROTECTED]> wrote:
> OK, found the answer
> here:http://groups.google.com/group/cake-php/browse_thread/thread/af135e46...
>
> I shoul
On Oct 25, 2007, at 8:52 AM, DonGato wrote:
>
> Hello,
>
> I'm implementing LDAP authentication and trying to use the MVC posted
> by UncleBill, i receive the following error:
>
> Fatal error: Call to undefined function ldap_connect() in D:\wamp\www
> \cake\app\models\ldap_user.php on line 19
>
OK, found the answer here:
http://groups.google.com/group/cake-php/browse_thread/thread/af135e46e9acb355/93459541d5c568d9?lnk=gst&q=router+admin+routing#93459541d5c568d9
I should have spent more than 30 minutes looking for the answer . . .
On Oct 25, 9:43 am, hydra12 <[EMAIL PROTECTED]> wrote:
>
Use Webdeveloper plugin for Mozilla (or similar) to tell you what
styles are affecting those black rows. You must be missing something,
somewhere.
Wayne
On 10/25/07, Daniel <[EMAIL PROTECTED]> wrote:
>
> There is no "black" or "#000" in that css file.
>
>
> >
>
--~--~-~--~~-
for the table name you can use var $useTable ='your_table_name'; in
the model
You should use the name variable in controler and model to use the
same name...
On 25 Ott, 16:27, MikeK <[EMAIL PROTECTED]> wrote:
> OR can we just change the Catch model to be Katch model, and leave the
> Catches contr
Hi all,
I tried the following:
1. lemp>>Replace __("CakePHP: the rapid development php framework",
true) ... did not work
2. Kunthar>>adding "php_flag display_errors on" in .htaccess file ...
did not work
3. Zend Optimizer was running. I tried disabling it by adding the
following lines in .ht
Hello,
I'm implementing LDAP authentication and trying to use the MVC posted
by UncleBill, i receive the following error:
Fatal error: Call to undefined function ldap_connect() in D:\wamp\www
\cake\app\models\ldap_user.php on line 19
Where should I define the ldap_connect function?
--~--~
I have the same problem too, any help please?
On 25 Ott, 05:09, Rajesh <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I am new to cake PHP and i am using version 1.1.17. I am little
> confused as to how to handle image uploads within a single form that
> has other fields to capture additional informatio
There is no "black" or "#000" in that css file.
--~--~-~--~~~---~--~~
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 e
AFAIK, you can't. You might get it to work this way, though:
1. Put a hidden field in your form.
2. Setup some javascript to populate the hidden field with either
'flag' or 'delete' depending on which button you click, then submit.
3. Setup your controller to perform different actions based on
I'm working on a new app, and I'm having trouble with routes and admin
routing. I have a route setup for my non-admin users:
Router::connect('/', array('controller' => 'tips', 'action' =>
'add'));
This works great. When a user connects to my site, they automatically
go to the /tips/add page.
Has anyone else experienced problems with loading plugin models using the
1.2.0.5875 pre-beta release? The standard "Missing Model" error message says
it expects the model to be in app/models, which is incorrect because it
should be in app/plugins/plugin_name/models.
Ryan Rose
Vice President
Di
Thank you both for your replies.
When I manually type this url directly into the browser address bar,
the flash file loads, gets all the other files it needs, and works
fine:
http://localhost/cake/img/INDEX.SWF
where, the .swf files are located in:
/cake/app/webroot/img/
However, when I use th
OR can we just change the Catch model to be Katch model, and leave the
Catches controller and views in place while updating all invokations
of Catch model code to Katch and updating all the associations from
other models etc to use Katch?
Also we'd like to leave the DB as it is -- so we could spe
my apache web root is D:\WebDev\www\
my cake is placed in D:\WebDev\www\pet
there is app cake vendors .htaccess index.php in D:\WebDev\www\pet
i write a controller post ,view add for it ,and connected to mysql
but http://localhost/pet/posts/add/ page is not found
i can access http://localhost/p
Hello to All.
A few days ago I downloaded last stable version of cake and installed
on my development server.
It was easy to install in on virtual host (name based). I've got
success cake page. And started to work. I already have some experience
with cake.
I mentioned very strange thing:
Some ti
That's really some useful convention, there is additionally a footer
tag , curiously it has to be placed
between thead and tbody.
But there is still a problem with the dragging effect in the tbody,
you just see the rows swapping places but you don't see any movement
of the row while dragging. If
Hi.
I'm trying to create a simple sample to test CakePHP, and I'm
following the steps from:
http://grahambird.co.uk/cake/tutorials/ajax.php
I did all the steps, but I get this error message when accessing
http://localhost/tasks
--
You are seeing this error because the view for
TasksControlle
I'm writing a web app that communicates with a HTTP based API. In
short, it works like this:
1. My app sends a request to the API using url-encoded HTTP POST (ie
http://server/parameter1=foo¶meter2=bar). The parameters varies
depending on the request, but things like username and URL are the
same
I found out:
Pretty trivial in the end, but hey, it's always, isn't it?
The saveField triggered a beforeSave-Function which then returned
false, because it was designed for uploading and saving images and
couldn't handle the data. Strange thing is, it didn't in the alpha-
release but i couldn't f
Hi
I am working on a Animal Inventory System.
In a particular area of my application, I have a form with two submit
buttons say one for "Flag" and other for "Delete".
My problem is - "I have to post the form along with its data to the
flag action of say Animal controller when the user clicks the
Hi.
I've got a PHP application made with Smarty templates and I want to
port it to CakePHP and I've found out SmartyView (http://
bakery.cakephp.org/articles/view/how-to-use-smarty-with-cake-
smartyview)
Can I keep the Smarty Syntax when I call elements? For instance:
---
{section name=i
How can I use the value of page time load inside my controller?
If It's possible how I can do this?
Many Thanks
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send ema
On my way to php5 I ran across a pain -- Catch is a keyword and in my
fishing application I have a Catch model. I am trying to avoid
renaming (in controllers, views, models, db, everywhere!) for a number
of reasons and the real problem is just the model class name - I can
use it in var names etc:
Tonight I upgraded CakePHP to latest release - 1.2.0.5875-pre-beta ana
all buttons in layouts of my currently developed application went away
Untill now I used htmlHelpe to create buttons (because formHelper
says: "Don't use me yet") with this code:
print $html->input('CustomerDetail.id', array('t
Yes, there is a way: put that condition in the before methods.
On Oct 24, 1:45 pm, John Messingham <[EMAIL PROTECTED]>
wrote:
> Thanks for the replies.
>
> I was hoping there was a way to add 'where user_id = xx' to every
> query. however the suggestions made shold help me out. So again many
> th
Hi to hall, I was wondering myself the same exact question!
francky could you please better elaborate the part
> - render the same view, meaning you have to collect data again and
> keep $this->data
as I would prefer to avoid using ajax (or better give an alternative
method that degrades withou
81 matches
Mail list logo