On 2/3/07, Grant Cox <[EMAIL PROTECTED]> wrote:
>
> You can use fake model / field names in your html/form helpers, and
> this data still comes through to the controller ok. So, you could
> have something like this in your view
>
> echo $html->input( 'Host1/name' );
> echo $html->input( 'Host1/ad
On 2/3/07, indoven <[EMAIL PROTECTED]> wrote:
>
> Thanks for the helpful responses. The flexibility of using observers
> does appear to offer the most functionality.
>
If using CakePHP 1.2 also explore the possibility of using behaviours
And I don't know if it is planned ability to add behaviour
Hi
I'm currently working on an 'handler' framework for cake vendor dir :)
It's php5 only though, but it supports a few different nice things - the
real simple outline is:
You have a 'Handler' (singleton) where you can 'trigger' some default events
and your own custom ones
For each Handler, you hav
You can use fake model / field names in your html/form helpers, and
this data still comes through to the controller ok. So, you could
have something like this in your view
echo $html->input( 'Host1/name' );
echo $html->input( 'Host1/address' );
echo $html->input( 'Host2/name' );
echo $html->inpu
Hi Ian
> Fully agree that the way to use model callbacks for things like
> sending emails is to use observers - there is a tutorial on the Bakery
> on this. It is such a flexible way of doing things that I have started
> to put quite a lot of business logic that might otherwise go elsewhere
> int
Thanks for the helpful responses. The flexibility of using observers
does appear to offer the most functionality.
On Feb 2, 2:41 am, "ianh" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> Fully agree that the way to use model callbacks for things like
> sending emails is to use observers - there is a tu
The problem is that "name" is ambiguous - do you mean the Gallery.name
or the Image.name ?
As a convention, you should prefix all your fields with the model
name, so your query would be:
$this->Gallery->findAll("Gallery.id = '$id'",
array("Gallery.name","Gallery.description","Image.filename") );
So you have $helpers = array('Javascript') in your AppController?
Chris
--~--~-~--~~~---~--~~
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 unsubscrib
I'm having trouble accessing the session helper from a cached view.
I've put the nocache tags around the content. When the view is loaded
from cache the session helper doesn't start the session. Looking
through the code it appears the session component is the only are that
starts the session. A
Hi.
I'm new in CakePHP. My problem is:
I've got Gallery(id,name,description) and
Image(id,name,filename,gallery_id) models.
When I make:
$this->Gallery->findAll("id = '$id'");
I get a Gallery and related imges. Works fine. But I want only gallery
name, description images filename, so I do:
$this-
I'm assuming you're referring to the paginate( ) method of the of the
Controller, as opposed to an actual component. The solution to the
problem is two fold. First, you need to grab the pagination
parameters from the URL, which, in your controller, will usually be in
$this->passedArgs. You can
Could someone point me to an example (or a page that details) how to
use the pagination component using a manual query that I'm using in
Model::execute()?
thnx,
Christoph
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gro
Or, they could all use the same Model, i.e 'MyORMWrapper,' and you can
use that model class as a wrapper to your other ORM code - make sure
to set the model's useTable variable to false/null or somesuch.
I think that would work, and would mean you can share your ORM code
between controllers quite
I am new to CakePHP, but you can try this in your controller method:
$this->Session->write('language', 'deu');
Then, when you need it, use this:
$lang = $this->Session->read('language');
More on http://manual.cakephp.org/chapter/session
On Feb 2, 5:48 pm, "Kathrin" <[EMAIL PROTECTED]> wrote:
>
Have you looked at the session component?
I do something similar:
class AppController extends Controller {
var $components=array('RequestHandler', 'Session');
...
function beforeFilter()
{
if(isset($this->params['url']['lang']))
{
$this->Session->write('la
I want so save the language setting, a choice of user, (Array
( [language] => deu )) in session. I create a new action like
change_language an now I try to save the Choice in the session of the
user.
Have somebody an idea or a simple example?
Many Thanks
Kathrin
--~--~-~--~~-
On Feb 2, 2007, at 10:29 AM, einundswanzig wrote:
>
> I im pretty new in CakePHP, i have read the tutorial and a few things
> about it and i was wondering i could use the MVC block of the
> framework, so i create a controller and a view, but, when i try access
> the action Cake says that the Mod
Okay after getting quite frustrated, (and probably frustrating phishy
and phpnut on irc) I wrote a testcase and amended it to trac here:
https://trac.cakephp.org/ticket/1762
I've duplicated the post here for completeness!
Regards,
Simon
=
Scratch the last I've determined that it's the v
I im pretty new in CakePHP, i have read the tutorial and a few things
about it and i was wondering i could use the MVC block of the
framework, so i create a controller and a view, but, when i try access
the action Cake says that the Model is missing. I want to use an ORM
system instead of the one
Hi all
I have a problem with AJAX page. Cake 1.1.12.4205.
I have an application in which almost all content is requested by AJAX
requests.
On local machine all works fine, but on web server I got stupid error
message
"Not found
The requested address 403.shtml was not found on this server."
wha
Thanks to Dan and Clemos for the feedback here. I have enough to keep
me busy for a while and I think I'm finally starting to understand the
process here.
On Feb 1, 11:26 am, "Dan" <[EMAIL PROTECTED]> wrote:
> Thanks Clemos!
>
> That's pretty much what I've been aiming for ;)
>
> Many thanks
>
>
Grmpf, GoogleGroups did eat my initial reply :S
Here again, real short:
- Sessions will of course only work in browser context, not in
FlashIDE or FlashOut
- when working with CakeAMFPHP, make sure to name Cake cookies same
as AMFPHP does
( core.php ~ l.95: define('CAKE_SESSION_COOKIE', 'PHPSES
It's the production side of things that worries me most (martin). This
is a live system I am working on and, although the web is forgiving,
there is much dependency on Cake and the CMS built on top. Thanks for
your answers, folks.
Dimitry
On Feb 2, 1:11 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTE
You might need to set the id for Ride
Like
$this->Ride->id = $this->data['Ride']['id'];
$this->Ride->save($this->data);
On 1/31/07, apacheuk <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I am fairly new to cake, but am loving it so far.
>
> However I've hit a small snag that I can't seem to figure out.
thank you all for your responses I'll try that 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,
> In your AppController:
>
> var $ext = '.php';
Didn't read then before writing my previous post. That's of course an
even better solution ; ).
-- Felix
--
http://www.thinkingphp.org
http://www.fg-webdesign.de
Larry E. Masters aka PhpNut wrote:
> In your AppController:
>
If you really want to change the extension, you have to create your own
view class. Something like this should work:
/app/views/app.php
--
class AppView extends View
{
var $ext = '.php';
}
/app/app_controller.php
---
Hi,
I need to decide on an approach for integrating full site search into
a cakephp app. I have used phpDig before (on a non-cake app) but have
found this article using Zend's lucene component:
http://bakery.cakephp.org/articles/view/102
does anyone know of any other ready-baked solutions, or h
It does not happen to me and I'm on:
Mac OSX 10.4.8
PHP 5.1.4
mysql Ver 14.7 Distrib 4.1.20, for apple-darwin8.7.1 (i686) using
EditLine wrapper from DarwinPorts..
"SELECT COUNT(*) AS count"
works fine
--~--~-~--~~~---~--~~
You received this message becaus
In your AppController:
var $ext = '.php';
--
/**
* @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 Goog
Hy all,
I crawled throught this group searching for endless need to configure
every app used for editing cackephp templates for syntax higlighting.
Big annoyance of cakephp (or any app with same aproach). Why let all
the world change their settings if one could sipmly let the templates
be with p
Brilliant guys - many thanks for your input. I'll remember to put the
link to the file in future (should have thought of that).
As I don't know what cascading deletes/updates are (!) I'm going to go
with standard cake functionality and do everything in the model.
would anyone recommend OthAuth o
Hi :)
As discussed several times in this group, you have to do a mysql_query("SET
NAMES 'UTF8'") to work with UTF-8 in your cake app.
This seems to create a problem with sessions if you store them in DB through
define('CAKE_SESSION_SAVE', 'database');
I tested with CakePHP 1.1.2 and 1.2: in bo
Hi,
The example works but ... (caketimer)
When i try cake timer with the last version of cake
(cake_1.1.12.4205), i have somes errors :
Error: progressTracker Data has a wrong format!
Notice: session_start(): ps_files_cleanup_dir: opendir(/var/lib/php4)
failed: Permission denied (13) in /var/ww
I guess your supposed to test and play with it, experience the new
unique(ish) features of it
enough to get you salivating for the full release (this is a preview of
whats coming aint it?)
personally I use undo and redo loads and loads, often doing a bulk of code
and realizing that about 30 minute
in your controller, try:
$this->MyModel->validate = array(
... alternate validation stuff ...
);
$this->MyModel->save($data);
On 2 fev, 09:52, "Sergei" <[EMAIL PROTECTED]> wrote:
> I dont have an example :-)
>
> But can we modify model variable $validate from controller?
>
> On 2 Фев., 16:27, "
Hi lukemack,
On Jan 31, 5:10 pm, "lukemack" <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I'm looking for some help regarding a new cake project. I'm new to
> cake but not to php and am planning on using it for a project I'm
> working on in the hope that it will allow me to develop it reasonably
> qui
I dont have an example :-)
But can we modify model variable $validate from controller?
On 2 Фев., 16:27, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 2/2/07, Sergei <[EMAIL PROTECTED]> wrote:
>
> > if(this->save(data,{_use_another_validate_array}))
>
> I don't thing there is an easy fix b
Hi All,
Fully agree that the way to use model callbacks for things like
sending emails is to use observers - there is a tutorial on the Bakery
on this. It is such a flexible way of doing things that I have started
to put quite a lot of business logic that might otherwise go elsewhere
into observe
Hi Kaste,
On Jan 31, 9:53 pm, Kaste <[EMAIL PROTECTED]> wrote:
> > On Jan 29, 3:59 am, Kaste <[EMAIL PROTECTED]> wrote:
> >> define css:
> >> body{font-size: 14px} // = that's your "original"-"100%"-size
>
> > That is potentially not a very good idea, and it's interesting that
> > it's mentioned
On 2/2/07, Eric C Blount <[EMAIL PROTECTED]> wrote:
> Submit them as enhancement tickets on https://trac.cakephp.org/. Include
> patches where applicable.
>
+1
And tests if possible
Cheers
Tarique
--
=
PHP for E-Biz: http://sanisoft.c
On 2/2/07, Sergei <[EMAIL PROTECTED]> wrote:
> if(this->save(data,{_use_another_validate_array}))
I don't thing there is an easy fix but I am curious as to why you need
this - can you share an example?
BTW I am working on a modification which will allow multiple
validations to be applied to a s
Submit them as enhancement tickets on https://trac.cakephp.org/. Include
patches where applicable.
HTH,
Eric
On 2/2/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> For my own needs I have perform few modifications on the cake core to
> add new functionnalities . In my opinion some
Hi,
For my own needs I have perform few modifications on the cake core to
add new functionnalities . In my opinion some of them can be useful
for many people. So I would like to propose theses modifications to
the cake devloppers, but I don't know how to do.
does somebody can help me ?
Thanks and
44 matches
Mail list logo