or messages.
> If you use the more specialized select() you'll have to create labels
> and error messages yourself. See FormHelper::error().
>
> http://api.cakephp.org/class_form_helper.html
>
> On 20 Oct 2008, at 07:49, clrockwell wrote:
>
>
>
> >
I'm using 1.2 and this is driving me crazy. I have a form with
several fields that use validation. When I submit an empty form for
testing all fields *except* the select have the appropriate html
generated and the error message is displayed.
The html for the select box begins with:
Occupation*
Hi all. The issue I'm having may be with routers, or it could be with
my lack of knowledge.
I'm using 1.2
I have two controllers: Vips and Exhibitors
Exhibitors has action admin(), Vips has crud actions.
Using elements and passing arguments to the function, visiting root/
exhibitors/admin/vips
I'm off to the
api.
On Jul 17, 10:57 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 17, 2008 at 10:49 AM, clrockwell
>
> <[EMAIL PROTECTED]> wrote:
>
> > Hello all,
>
> > For one of my controllers I declare var $uses with 6
Hello all,
For one of my controllers I declare var $uses with 6 total values.
What I see is that on every action within the controller, all 6 are
'described' which uses more resources than needed.
I guess my question is, is there a way to declare uses() on the fly so
that I only access those tab
Using RC2 - 7296. MySQL tables remain open after information is
pulled. When mysql is restarted, there are 6 open tables, as I
navigate the site and information is needed, tables are opened but not
closed. Eventually there are 29 open tables.
I do have "'persistant' => false" in database.php
T
Got it working. First I tried deprecated way of vendor('lastrss') and
it worked fine. So I tried App::import('vendor', 'lastrss') and it
also worked fine. Did not think it would be case sensitive, but in my
case (and maybe yours) it is.
On Jul 11, 9:31 am, clrock
If forgot to mention that I am importing a different class,
lastrss.php
Code: App::import('Vendor','lastrss');
On Jul 11, 9:29 am, clrockwell <[EMAIL PROTECTED]> wrote:
> If you happen to come by a solution, please post it here. I am having
> the same issue.
If you happen to come by a solution, please post it here. I am having
the same issue. Using RC2, build 7296
On Jul 11, 4:47 am, RichardAtHome <[EMAIL PROTECTED]> wrote:
> Just tried:
>
> App::import("Vendor", "PHPBB_Login", false, null, 'phpbb.php');
>
> And I'm still getting the same error:
>
>
Hello,
I am having an issue with memory loss, hoping someone can point me in
the right direction. I initially thought it was the image helper, but
that only partially fixed the issue.
Say I click on a link that brings up an article and that article is
pulled from a db. I use this
$conditions =
d use rc2 ;-)
> By the way, what is theimagesize you try to resize ?
>
> On Jul 7, 3:34 pm, clrockwell <[EMAIL PROTECTED]> wrote:
>
> > Hello All, hoping someone can point out the why I keep getting a
> > memory error at line 59 ofimagehelper, it is using a ridiculous
Hello All, hoping someone can point out the why I keep getting a
memory error at line 59 of image helper, it is using a ridiculous
amount of memory.
The helper is posted here:
http://bin.cakephp.org/view/859527090
Using nightly build 6296 (just grabbed it yesterday), cakephp 1.2 rc1
Thanks much
It's working. It was the 'complete', I was not calling the function
correctly -> init() instead of imgReplace.init()
Thanks!
On Jun 24, 1:53 pm, clrockwell <[EMAIL PROTECTED]> wrote:
> Thanks for the replay Michael
>
> I tried the complete with evalScripts
Thanks for the replay Michael
I tried the complete with evalScripts set to true and no luck. I also
tried 'success' but that
did not do the trick. I think it has to be in the callbacks, just can
not figure out where.
Thanks again.
On Jun 24, 12:50 pm, schneimi <[EMAIL PROTECTED]> wrote:
> Hi,
Hello again,
The pagination links generated by 1.2 are 'host/search/page:2'
Is it possible to make this 'host/search/page:2#search_results' to
create a 'jump'?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
bitor'));
$this->set('results', $this->paginate('Exhibitor'));
Instead of what I had previously.
Thanks for the link, now I get to go home happy.
On Jun 17, 3:40 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> http://api.cakephp.org/tests/c
bitor'));
$this->set('results', $this->paginate('Exhibitor'));
Instead of what I had previously.
Thanks for the link.
On Jun 17, 3:40 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote:
> http://api.cakephp.org/tests/containable_8test_8php-source.html#
I have been going over trac tickets and google searches for 2 hours, I
cannot get this to work.
$limit = 5;
$order = 'Company ASC';
$fields = array('Exhibitor.Company', 'Exhibitor.City',
'Exhibitor.State', 'Exhibitor.Booth', 'Exhibitor.Product',
'Exhibitor.Url');
$this->paginate = array('conditio
original array. Thus, it will be listed twice.
>
> You should either create a 2nd, empty array before the foreach loop
> and add JPEGs to that, or (better) change your test to be:
>
> if( $stats['mime'] != 'image/jpeg' )
> {
> unset($sublist[$k]);
>
>
Hello again all,
Just when I think I have a decent grasp on this whole PHP/CakePHP
thing, I create a function that returns twice as many array elements
as it should.
1.2
Function is here:
http://bin.cakephp.org/view/528917113
The view calls the action and just prints the results so that I can
Without using $form->error, cake will default to displaying the error
unless you set 'error' => 'false' so you do not have to use $form-
>error.
You can then define the error message in your model:
var $validate = array(
'firstname' => array(
'rule'
On May 20, 10:43 am, grigri <[EMAIL PROTECTED]> wrote:
> I'd have thought this would work:
>
>
> #header_right { background: #FFF url( base/rotate/'.$imgBase.'/'.$session->read('sessionImg.'.$imgBase)); ?>) 0 0
> no-repeat; }
>
>
And you'd be correct, that wo
You can put the authentication in users_controller.php, make an
element in app/views/elements that has your login form.
Put the login form anywhere using $this->element(). When you call
your authentication, store the current url in a session and after
success, redirect to that URL. Or use ajax
re.
But if I go another level deep, i.e. domain.com/section1/section2
I lose it again.
Thanks for any direction as to a more extensible fix for this.
On May 19, 12:47 pm, clrockwell <[EMAIL PROTECTED]> wrote:
> Forgot: cakephp 1.2, WAMP
>
> On May 19, 12:46 pm, clrockwell <[EMAI
Forgot: cakephp 1.2, WAMP
On May 19, 12:46 pm, clrockwell <[EMAIL PROTECTED]> wrote:
> Hello all,
>
> I have an element which displays an image based on a session variable,
> problem is that if I visit:
> "domain.com/section"
> I see the image, but visit
Hello all,
I have an element which displays an image based on a session variable,
problem is that if I visit:
"domain.com/section"
I see the image, but visiting:
"domain.com/section/" (with trailing slash)
does not show the image.
My image call is:
base/rotate//read('sessionImg.' . $imgBase);?>
I have two associated models - Newproduct hasMany Newproductimage -
Ideally, I need to do a find that only returns the Newproductimage
where 'newproductimage.thumbnail' is set to 1
Doing:
$conditions = array('Newproductimage.thumbnail' => 1)
$this->Newproduct->find('all', array('conditions' => $
On Apr 30, 9:39 pm, clrockwell <[EMAIL PROTECTED]> wrote:
> Thanks Sliv, I glanced at it but I'll take a more in depth look when i
> get to work tomorrow.
>
> I ended up 'solving' the issue by setting each individual field value
> on the actual edit form page u
Thanks Sliv, I glanced at it but I'll take a more in depth look when i
get to work tomorrow.
I ended up 'solving' the issue by setting each individual field value
on the actual edit form page using the session data. This resulted in
me not needing to set $this->data['Newproduct'] in the controll
27;m at my ends with this, any suggestions? Thanks again for your time
and any help.
On Apr 30, 10:21 am, clrockwell <[EMAIL PROTECTED]> wrote:
> I also tried this:http://bin.cakephp.org/view/1428722274
>
> Which does not write the new information. And the edit form is the
> exact
I also tried this:
http://bin.cakephp.org/view/1428722274
Which does not write the new information. And the edit form is the
exact same as the create form with the exception of the "action = ''"
and instead of $form->end('submit'), I use $form->submit('Submit
Edits', array('div' => false, 'name'
This: http://bin.cakephp.org/view/1061326765 redirects to confirm page
but with exact same information stored in session
On Apr 30, 7:47 am, Sliv <[EMAIL PROTECTED]> wrote:
> It looks to me like you're just reading the value from the session
> every time without checking the submitted data first
In my haste to seek help, I typed the function incorrectly (I was
recalling from memory, notice the 'product' are all 'newproduct')
This:
http://bin.cakephp.org/view/980003581
causes a validation error to be thrown (I only have one field set up
for validation right now)
I thought this would be
I have been driving myself nuts with this, any help is very much
appreciated!
I have a two page form with a review page. Each page has a submit
button that saves the data to a session and moves the user to the next
page. The review page gives the opportunity to edit the information
collected on
Hello,
I need to process a form over a secure connection and then go back to
port 80 - the login information is the only information that needs to
be protected.
So, a user visits the login form and submits the data (via a function
in a login component). When the form checks the database I think
Works like a charm, thanks much Guillaume!
On Mar 6, 4:03 am, Guillaume <[EMAIL PROTECTED]> wrote:
> I think you just have to set the $displayField var in your model
> tag.php
>
> $displayField = 'word';
>
> Guillaume
> --http://cherryonthe.popnews.com
&g
Using 1.2, i have a tag table that has two fields -> 'id' and 'word',
when i use $this->Tag->find('list'), the result is like:
1 or Tag['id']
What I want is:
Parking or Tag['word']
I tried using $this->Tag->find('list', array('word')), and $this->Tag-
>find('list', array('fields' => 'word'))
but
Hello again,
Issue is that local testing works great and remote does not, I'm not
sure how to explain this, so I'll jump right in:
The call in question :
$r = $this->Exhibitoruser->findByuserId($id);
In the sql output everything is exactly the same exact this last bit:
this is the sql genera
Hello, I am implementing othAuth and run into issues when using
$auto_redirect = true; please note that after each test, I clear cache
and cookies, then test again.
1st situation: $auto_redirect = true
with proper credentials, can login in fine at user/login and
directs to correct page (withou
Hello,
I have an edit action in controller which is not validating
correctly. The same validation works when a user registers, but not
on the edit, when I attempt to validate the data on edit($this-
>Attendeeregistration->validates($this->data), I get the Notice
(Notice: Undefined index: Attende
40 matches
Mail list logo