Hi Nick
Thanks for the feedback, but unfortunately that doesn't fit the bill for
me. Really all I am trying to do is break down a very complex
controller. Sadly the functionality can't be shared with other parts of
the application.
I could break the controller up into multiple controllers,
no problem with the email function : last week it works fine
$components=array( 'Email');
sure I write it, to there is the error:
Fatal error: Call to undefined function: send() in
/usersdev/wii/web/html/check/app/controllers/applications_controller.php
on line 17
and the controller:
class
Hi,
from what version of CakePHP You did upgrade to 3148?
Few weeks ago was in cake's code changed one thing, which affects all
helpers - they have to extend Helper class so they can work well. So if
Your Email helpers is extending other class which is not decendent of
Helper (or Helper
Email is a component and you can find the code at
http://wiki.cakephp.org/tutorials:sending_email
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Did you try$sortby = Model.field1 desc, Model.field2 desc;And set debug up to 2 in core.php to check the query it's performing.On 6/21/06,
Siegfried Hirsch [EMAIL PROTECTED] wrote:
Hello there,I just came across a problem with sorting in the findAll function.I just coded:$sortby = field1
Hi wluigi,
Do you have a model named Email aswell...?
If you put:
e(Start DebugbrHere's Email:);
pr ($this-Email);
e(Here's email:);
pr ($this-email); // Just to be sure
e(brEnd Debug:);
$this-Email-controller = $this;
There might be something tangible to use and say what the error is.
Let me to apologize to You, I was thinking of few different things and
in attempt to help You I mixed them together.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
There will be a very simple explenation for this, if you have a recent
version of cake (e.g. v 3000 or more) I think it-s time to stop by the
irc
;)
Cheers,
AD7six
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Try changing controller component to this:
class ApplicationsController extends AppController
{
//var $scaffold;
var $name = 'Applications';
var $components=array('Email');
function index(){
$some_data_for_email='test';
100rk: no problem
AD7six: it's hard for me to use the irc here (at work), can you still
give me your very simple explenation for this
RosSoft: I already try it before, but I still Copy past your code : I
got the same error.
--~--~-~--~~~---~--~~
You received this
apply first question to Your own AppController also, if You have
one :)
--~--~-~--~~~---~--~~
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
No own AppController
No constructor
...
--~--~-~--~~~---~--~~
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
I've my own PagesController ...
--~--~-~--~~~---~--~~
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
Hey thanks, well i came to know that the variables posted through set
$this-set('name',value) are also accessible in the elements accessed
through layouts. That did the trick i guess.
thanks
cake is tasty!
--~--~-~--~~~---~--~~
You received this message because
:-((
Then: put this method into Your ApplicationsController:
function __construct() {
e('Components before parent constructor: ');
pr($this-components);
parent::__construct();
e('Components after parent constructor: ');
pr($this-components);
}
For explanation of I'm trying
Your own pages controller is not matter in this case, as we're running
action from other controller. I assume You're trying hunt this error in
empty controller and layout, so we can be sure You're not calling other
things in during lifetime of script for example by requestAction() etc.
BTW: from
Run this controller, please (http://example.com/problem/):
?php
class ProblemController extends AppController {
var $name = 'Problem';
var $uses = null;
var $components = array('Email');
var $autoRender = false;
function index() {
pr($this-Email);
}
}
?
After changing Email to Courriel:
Components before parent constructor:
Array
(
[0] = Courriel
)
Components after parent constructor:
Array
(
[0] = Courriel
[1] = Session
)
It seems that the controler know the component but he doesn't loead id
I also temporarily change line 63 of
Hi wluigi: go here, and if you are lucky I _might_ be able to help:
http://www.noswad.me.uk/demos/chat/
I don´t know what the explenation might be, and having conversations
via the google group is slow and probably frustrating for you ;)
Cheers,
AD7six
If You will again fail with 'Undefined property' and this will be in
clean CakePHP install, You will have to put somewhere output of
function phpinfo(). I assume CakePHP upgrade was only change You did -
so no PHP/webserver configuration changes, no other application changes
etc.
PS. I should have mentioned if you have a java enabled browser, you can
just go here http://irc.cakephp.org/irc.html
I will wait on my page, incase you show up ;)
Cheers,
AD7six
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
first, try updating to last bug fix version
second, do you have php4 /5 ,exactly what version?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
print $ajax-submit('Add task', array('url' = 'add',
'update'='tasks_todo');
print $ajax-submit('Add task', array('url' = 'add',
'update'='tasks_todo','class'='something');
doesn't work, is there a different format?
--~--~-~--~~~---~--~~
You received this
So, I mean this...
site.url.com/comments/add - if some bad guys copy this html code at
his site, and make 3-5 line of php code. He can made a lot of comments
at my site from his
badguys.com/comments.php (copy my file + some bad addons ;)
Of couse, I understand, put PHPSession in hidden tag
Hi,
New bie... I am trying to set up the rdBloggery application.
Is it possible to configure the rdBloggery without mod_rewrite things ?
I tried a lot. But all invain.
I found the .htaccess files in some folders. I removed all those and I
uncommented the 42 nd line from core.php. When I type
Hello everyone,
Must say I am very impressed with CakePHP but I'm having trouble
getting my head around associations, particularly hasAndBelongsToMany.
The scenario is this, I've got two tables Users and Teams linked by a
join table. When I return a team using Team-find sometimes I only want
to
Have you looked in the model chapter of the manual http://manual.cakephp.org/chapter/6 you are looking for the section on adding conditions. For example one thing that I have as a condition is flActive=true
Sam DOn 6/22/06, Matt [EMAIL PROTECTED] wrote:
Hello everyone,Must say I am very impressed
see
http://groups.google.es/group/cake-php/browse_thread/thread/cc0dd3c39c73aeb6
--~--~-~--~~~---~--~~
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
then what you are probably looking for is bindModel and unbindModel look at some of the listings at http://cakephp.org/search?q=bindModel (cakebaker has a nice overview) you can also have conditions in your findAll and find calls
Sam DOn 6/22/06, Matt [EMAIL PROTECTED] wrote:
Hi Samuel,I saw that
Anyhow, I'm still looking for the one perfect, free, stable,
standards-compliant and customizable WYSIWYG editor that someone wrote
for me, but I'm not holding my breath.
I've used http://tinymce.moxiecode.com/ a few times, have customised
the thumbnail browsing etc to query the db, not in
But you must write routes for all locales. I think locales should be in
database + some logic for aid translating.
Anyway my code is not for locale support. It's for readable/memorable
urls.
--~--~-~--~~~---~--~~
You received this message because you are
http://www.phpdoc.org/-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic
*/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake PHP group. To
Hi!
I've been having some problems querying two data models that are
related by a HABTM association.
Basically I have two models User and Feed linked by a HABTM association
which use the following database tables.
users
feeds
feeds_users (join table)
The association seems to be working as
There isn't any CakePHP manual in spanish, sorry.
And please speak in spanish in this google group. The spanish group is
http://groups.google.es/group/CakePHP-es?lnk=li
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Superb, you win
--~--~-~--~~~---~--~~
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 PROTECTED]
For
I mean speak english in this group :)
--~--~-~--~~~---~--~~
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
not something like this ?
$this-MyModel-find('MyModel.parent_id = 0');
this should return only those MyModel (and associated Models,
depending on the $recursive depth) that respect this specific
condition.
spark
On 6/22/06, Matt [EMAIL PROTECTED] wrote:
Hi Samuel,
I saw that section
FYI, charsetTag is deprecated, use charset.
--~--~-~--~~~---~--~~
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
ok you win 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 PROTECTED]
For
Thank a lot!
just one more thing, i still can´t get it right about the @package and
@subpackage thing, let's say I code a model User and the controller is
Users, what
should be @package and @subpackage for each one?
--~--~-~--~~~---~--~~
You received this
Ivan,This is how I do it with cake comments.@package app@subpackage app/controllers@package app@subpackage app/modelsLook at the way I have done it in the cake code, it should be pretty obvious there,
-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string
Hi Ian,
Set your app/config/core.php debug to 2 and you'll see the sql
statements at the foot of the page, and I guess you will also see that
two fields with the name of ui_name are included (from an association).
if you specify model.field = ASC that should do it for you.
Cheers,
AD7six
RequestHander seems to go part way to meeting the first point on this
list: https://trac.cakephp.org/wiki/Proposals/4.0ToDoList
:)
Cheers,
AD7six
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
Thanks much, not just for the answer, but for the debugging tip which
will help me figure out future bugs. I'd tried 'table.field', thinking
it was raw sql, but doing 'model.field' did the trick. Thanks again.
--~--~-~--~~~---~--~~
You received this message
Thanks a lot.
--~--~-~--~~~---~--~~
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 PROTECTED]
For more
Thought this might be useful for some, manages a session cart/wishlist:
?php
class WishlistController extends AppController
{
var $uses = 'Product';
var $helpers = array('Html', 'Javascript');
var $layout = 'default';
// loop thru products in session
//
2006/6/22, Repsah [EMAIL PROTECTED]:
Did you try
$sortby = Model.field1 desc, Model.field2 desc;
the solution is:
$sortby = array(field1 = DESC, field2 = DESC);
--
Siegfried Hirsch
http://www.rss-blogger.de / http://seconds11.com
http://www.newsbee.de NewsBee 2.0 - customized RSS solutions
I'll make it a little less app specific first, but that's a good idea.
--~--~-~--~~~---~--~~
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,
I have 3 tables: profiles, projects and profiles_projects
I have var $hasAndBelongsToMany = 'Project' on profile.php and var
$hasAndBelongsToMany = 'Profile' on my project.php file. I can
retrieve/query fine, but when saving, I get this error:
Warning: Invalid argument supplied for
Thanks to some hard work by nate, sdevore and the use of my trusty
whip, we have been able to put together the first draft of the Cake
Sheet. We hope this provides a nice reference to the core Cake
functionality.
the project: http://cakeforge.org/projects/cakedocs
the pdf version:
Seems to work when data[Profile][Profile] is not in a hidden field...
Strange
--~--~-~--~~~---~--~~
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
Found the problem...
using:
$html-hidden('Profile/Profile', array('value' =
$this-controller-Session-read('p.id')));
doesnt work for me. I had to manually insert the profile id in the
create method of my projects controller:
$this-data['Profile']['Profile']['id'] = $this-Session-read('p.id');
I am new (only my second day at the oven) - so a warning to another
newbies. The latest manual is not at the top of the page - that is an
old release.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
I am confused with something
I have 2 models
one is called Transacctions the other is called Onhand.
Transacctions
-id
-product_id
-quantity
Onhand
-id
-product_id
-quantity_onhand
After each transacction is inserted I want to increase or decrease the
quantity_onhand using the quantity value
54 matches
Mail list logo