But it is not solving my prob. For that I have to change the whole
code, all the places I have used that. Cakephp should have any fix for
this issue. Anyone can help me?
On Jun 30, 9:35 pm, Shaz wrote:
> You'll have to use $_SERVER[] to get your path:
>
> http://php.net/manual/en/reserved.variabl
Hi All
It's been a long time since I've written any CakePHP, and even longer
since Ive had to set up a server. I know there is an answer to this
somewhere but I cant for the life of me find it! Also I have
previously only used 1.1, and am now using the latest version
On my WAMP server Im using
Ok I think I got this figured out.. apparently the 'foreignKey' is
required, in setting the relationship in the model (within the
array).. this didn't seem clear to me in the documentation as I had
thought all the settings were optional but now I know what I need to
make it work.
Check out the new
Never mind! I solved my own issue. The code I posted is correct. The
error was created by my submit button sneaking into the result set. (I
named it "data[Product][submit]") Changing the name of the submit
button solved the issue.
Check out the new CakePHP Questions site http://cakeqs.org and help
I'm trying to define an association between my models and then call a
set and then save function to upload data from my controller to the
associated model but am running into strange problems, as far as I can
tell I followed the cakephp book exactly but its still giving me an
error.
this
Is there a best practice or rule of thumb to work from when defining model
associations?
It seems pretty cut and dry and there's not much that you can really mess
up.
I know this problem has been brought up here in the past but I'm still
unable to find a solution after reviewing older threads.
I'
i don´t know why and didn´t know that i need a model for when i use
loadModel() know i know it and resolved my issue.
you have to translate this ^^ : probieren geht über studieren!
thanks for your help!
2010/6/30 Davor Ilic
> i don´t understand this because after i enter my phpmyadmin i see a
Also, here's the structure of the data that it tries to save. I think
it looks exactly like the example in the book, but it just won't
update anything.
Array
(
[Product] => Array
(
[0] => Array
(
[id] => 1021
[upc] =>
Hi all,
I'm trying to save/update a number of rows from a grid into a table
with a single command. According to the documentation the SaveAll
command should do this. However, I get nothing...
(default) 26 queries took 149 ms Nr Query Error AffectedNum.
rows
Took (ms)
23 STAR
Thanks for such a comprehensive reply!
Just trying things out, and the first part doesnt seem to work,
I'm trying to get www.domain.com/slug
to actually be www.domain.com/artists/view/slug
Any ideas?
d.
On 30 June, 19:17, cricket wrote:
> On Wed, Jun 30, 2010 at 6:02 AM, designv...@gmail.c
Thanks for such a comprehensive reply!
Just trying things out, and the first part doesnt seem to work,
I'm trying to get www.domain.com/slug
to actually be www.domain.com/artists/view/slug
Any ideas?
d.
On 30 June, 19:17, cricket wrote:
> On Wed, Jun 30, 2010 at 6:02 AM, designv...@gmail.c
function __() print string, that you type it as first parameter, if
you don't use second parameter, so your example should be like this
(if you use second parameter, true means that function return string,
not print it):
echo $this->Html->link(__('Add', true),array('controller' =>
'categories',
'a
function __() print string, that you type it as first parameter, if you
don't use second parameter, so your example should be like this (if you use
second parameter, true means that function return string, not print it):
echo $this->Html->link(__('Add', true),array('controller' => 'categories',
'a
Hi,
I use link method of the Html helper in a custom helper that I have
made.
I tried to make the link title uses __( ) to maintain translaton but
it produce the link text title only without full a href html tag.
For example:
//method of the helper has this line of code
echo $this->Html->link(__(
core.php - at Session Cookie setting line
=
Configure::write('Session.cookie', 'Cakephp');
=
I want to delete this cookie when user logout but I don't know how to
delete this cookie
I tried
$this->Cookie->del('Cakephp');
$th
What I need, in other words, is a method to say, "this result set will
have a value that should be matched in this result set." No idea how
to do that or if it's even possible.
On Jun 30, 3:30 pm, DragonFlyEye wrote:
> Ok, so what seems to be the case is that the conditions element of the
> array
Sorry, it was just typing mistake. I already write it with brckets -
notice the closing bracket -.
I still don't know how to make Html helper accessible inside the
function.
On Jun 30, 7:33 pm, Shaz wrote:
> .$html->link[$catName,
>
> You're using a square bracket? Should be:
>
> .$html->link($c
Ok, so what seems to be the case is that the conditions element of the
array is assumed to contain a string that can be used to compare. So
if I put in a specific bit of text, it works fine.
The difficulty here is that I'm trying to make an associating in
CakePHP that doesn't use the primary key.
Hello, again, cricket!
Thanks for the help, but I'm still getting the WHERE [PageSettings].
[pageid] = 'SubgroupPage.pageid' thing. I've never seen CakePHP react
to a query in this manner before!
On Jun 30, 2:30 pm, cricket wrote:
> On Wed, Jun 30, 2010 at 10:15 AM, DragonFlyEye
> wrote:
> > I
On Wed, Jun 30, 2010 at 5:44 AM, jodator wrote:
> I have similar thoughts on VPS after switching to one.
> It's not as easy as shared hosting, but you can find tons of tutorials
> online.
>
> Btw, Big THX for the linode.com link. I was searching a affordable VPS
> in US and these one is just sweet
On Wed, Jun 30, 2010 at 10:15 AM, DragonFlyEye wrote:
> I'm trying to make an association between two models that do not use
> the primary key as the association. I'm not sure why I'm getting the
> results that I am from this:
> class SubgroupPage extends AppModel {
> var $name
On Wed, Jun 30, 2010 at 6:27 AM, brianclark...@btconnect.com
wrote:
> Hi
>
> I have configured the Auth component and its working fine. I need to
> save a User associated model in the session.
> I assume the best way to do this is to catch the successful login and
> then add the associated model t
On Wed, Jun 30, 2010 at 6:02 AM, designv...@gmail.com
wrote:
> hi there,
>
> I have (imo) a slightly tricky routing issue.
>
> I have a store setup with various artists and the artists have their
> own mini stores with custom layout etc...
>
> Now I want to route the following;
>
> www.domain.com/
Anyone know the reason why the saveAll() and multi-record form record
formats are the same, but the format of data returned from a
find(’all’) is different, such that a set::combine() is required
before sending to the view?
Check out the new CakePHP Questions site http://cakeqs.org and help others
Please provide more information!
- Specify how the User model is defined together with the validation.
Question:
- is your controller named Register or Registers? In your form create
statement you name it Register!
Enjoy,
John
On Jun 29, 10:50 pm, Nabeel wrote:
> Hi all,
>
> I'm trying to cr
Are you following:
http://book.cakephp.org/view/172/Authentication
?
On Jun 30, 11:27 am, "brianclark...@btconnect.com"
wrote:
> Hi
>
> I have configured the Auth component and its working fine. I need to
> save a User associated model in the session.
> I assume the best way to do this is to ca
You'll have to use $_SERVER[] to get your path:
http://php.net/manual/en/reserved.variables.server.php
On Jun 30, 2:45 pm, kaushik wrote:
> I have developed my site in a server where mod_rewrite and .httaccess
> are available. I used '$this->webroot' variable for a tag and img path
> extensively
.$html->link[$catName,
You're using a square bracket? Should be:
.$html->link($catName,
On Jun 30, 5:13 pm, saidbakr wrote:
> Hi,
> I have a little function in one of my views. This function could not
> able to use helpers. For example:
>
> //add.ctp
>
> // some html
> function printCat(){
>
>
Hi,
I have a little function in one of my views. This function could not
able to use helpers. For example:
//add.ctp
// some html
'.$html->link[$catName,
array('controller'=>'categories','action'=>'view','id'=>$catId)).'';
}
?>
I don't know how could I able to make the html helper accessible by
i don´t understand this because after i enter my phpmyadmin i see an entry
of the post but also i get this error undefined id but don´t know which id
and i cant find which line nothing.
if i search in google it seems every one how try to use hasMany or hasOne or
loadModel and used then this saving
It's the fear of the airfare that's more dominant!
Fingers crossed my little start-up will kick off, and be able to come
to the next one :)
On Jun 30, 3:45 pm, "Larry E. Masters aka PhpNut"
wrote:
> Shaz,
>
> Are you afraid to fly? :)
>
> --
> /**
> * @author Larry E. Masters
> * @var string $us
Mike,
Great! Looking forward to seeing you there.
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
On Wed, Jun 30, 2010 at 10:23 AM, Mike Karthauser
wrote:
>
> On Wed, June 30, 2010 4:12 pm, Larry E. Masters a
On Wed, June 30, 2010 4:12 pm, Larry E. Masters aka PhpNut wrote:
> Mike,
>
> The site list the early bird prices now, soon the prices will be going up.
> http://cakefest.org/ticket-info
aha.
am planning on travelling out with my good friend who is last speaker on
the 5th.
looking forward to it
Mike,
The site list the early bird prices now, soon the prices will be going up.
http://cakefest.org/ticket-info
We are checking with the hotel to make sure we have the room for expansion
because the response to the event is higher than anticipated this year.
Everyone wants a piece of the CakePHP
Hi Larry
am thinking about it. Do you know what the early bird ticket prices are?
we'll be coming up from bristol, UK.
mikek
On Wed, June 30, 2010 3:38 pm, Larry E. Masters aka PhpNut wrote:
> Just want to start a thread and see how many people on the google group
> would like to attend or are p
Shaz,
Are you afraid to fly? :)
--
/**
* @author Larry E. Masters
* @var string $userName
* @param string $realName
* @returns string aka PhpNut
* @access public
*/
On Wed, Jun 30, 2010 at 9:42 AM, Shaz wrote:
> I'd come if it wasn't so far away from London!
>
> On Jun 30, 3:38 pm, "Larry E.
is it possible that this not working like i do or is this an bug ?
2010/6/30 Davor Ilic
> its only if i add this line
>
>
>
> if(!empty($product)) {
>
>
>
> $this->loadModel('Kattaxonomie');
>
>
>
>
>
I'd come if it wasn't so far away from London!
On Jun 30, 3:38 pm, "Larry E. Masters aka PhpNut"
wrote:
> Just want to start a thread and see how many people on the google group
> would like to attend or are planning to attend CakeFest 2010? This is the
> largest gathering of CakePHP developers a
Just want to start a thread and see how many people on the google group
would like to attend or are planning to attend CakeFest 2010? This is the
largest gathering of CakePHP developers and we plan to have most of the core
development team at the event this year.
http://cakefest.org/schedule
So w
Very strange - can you put up the code from a controller where the
session does work? I'm assuming they're identical - or they should be.
Also it might be a case of overkill by using both:
App::import('Core', 'l10n', 'Sanitize', 'CakeSession');
And:
public $components = array('Session','Cookie'
CakePHP follows the MVC design pattern - most of the heavy lifting
should be done in the model with the controller just being the
intermediary between the model and view.
Remember: Fat Model, Skinny Controller
http://teknoid.wordpress.com/2009/01/06/another-way-to-think-about-mvc/
On Jun 30, 12:2
I'm trying to make an association between two models that do not use
the primary key as the association. I'm not sure why I'm getting the
results that I am from this:
class SubgroupPage extends AppModel {
var $name = 'SubgroupPage';
var $useTable = 'menu_subgroup_pag
yep - that's why i was asking him :)
On 30 Jun., 13:27, Rick Dane wrote:
> This should all be in the controller as far as I can tell, cakephp
> seems to want everything in the control with the model just being
> representative of the database, so I believe the model wouldn't come
> into play unt
I have developed my site in a server where mod_rewrite and .httaccess
are available. I used '$this->webroot' variable for a tag and img path
extensively. But I have to make the live in a server where mod_rewrite
and .httaccess are not available and the site will be uploaded in a
subfolder (not in t
its only if i add this line
if(!empty($product)) {
$this->loadModel('Kattaxonomie');
$counted_katId =
count($this->data['Kat']);
sorry.. putting in beforFilter the requestHandler it works? Can somebody
explain me why?
On Wed, Jun 30, 2010 at 3:04 PM, emanuele wrote:
> hello fellows,
>
> is there any possibility to parse an url with xls extensions? Ive tried
> with pdf it works, but If I try with xls nothing happens.
> In
hello fellows,
is there any possibility to parse an url with xls extensions? Ive tried with
pdf it works, but If I try with xls nothing happens.
In my routes.php
Router::parseExtensions('pdf', 'xls');
Router::connect(
'/mcontrollers/view/:id',
array('controller' => 'mcontrollers'
(and yes this is part of a cakephp class and within a function, I know
thats not where the error is so I left that out for simplicity)
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscr
Have u config apache well? It should turn some modules.
On 6/30/10, Abhishek wrote:
> am also surprised by the fact that over time none of our users
> complained about this problem ...
>
>
> On Jun 30, 1:15 pm, Abhishek wrote:
>> Hi,
>> Whenever a user opens the index page for a controller .. e.
Hi
I have configured the Auth component and its working fine. I need to
save a User associated model in the session.
I assume the best way to do this is to catch the successful login and
then add the associated model to the session.
I have set Auth->loginAction = users/login. Auth->login is called
Did you bake the initial view?
If yes did it work before your changes?
Attach your create table script
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"Cake
do you need something else?
lg,
Davor
2010/6/30 Davor Ilic
> please ignore this line this have been copied wrong " Checkboxen als Checkbox'):"
>
> 2010/6/30 Davor Ilic
>
> Model:
>>
>> >
>>
>> class Product extends AppModel {
>>
>>
>>
>> var $name = 'Product';
>>
>>
>>
>> var $primaryKey =
Thanks, that worked.. Could've sworn I tried it like this:
"$retrieveemail = $this->Retrieveemail->find('first'); " before but I
guess not, probably just been on the computer too long getting
familiar with cakephp :)
On Jun 30, 4:30 am, Jeremy Burns | Class Outfit
wrote:
> Apologies...I wasn't t
Apologies...I wasn't thinking straight. Try this:
$retrieveemail = $this->Retrieveemail->find('first');
$email_address = $retrieveemail['Retrieveemail']['emailid'] ;
$email_password = $retrieveemail['Retrieveemail']['password'] ;
$this->set('variable', $variable) is only available outside of the
This should all be in the controller as far as I can tell, cakephp
seems to want everything in the control with the model just being
representative of the database, so I believe the model wouldn't come
into play until you are uploading the csv to the database
On Jun 30, 2:49 am, euromark wrote:
I get this:
"app\controllers\hushmail\retrieveemails_controller.php (line 170)
retrieveemail
"
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" g
What do you see if you die(debug(retrieveemail)); just after you do your find?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 30 Jun 2010, at 12:21, Rick Dane wrote:
> I am very lost at this point as I am just going in circles with trying
> to retrieve data
I think that hostmonster is very good!
http://www.hostmonster.com/track/saidbakr/azzazi
On Jun 30, 12:44 pm, jodator wrote:
> I have similar thoughts on VPS after switching to one.
> It's not as easy as shared hosting, but you can find tons of tutorials
> online.
>
> Btw, Big THX for the linode.c
I am very lost at this point as I am just going in circles with trying
to retrieve data from a database the "cakephp" way, I have looked at
every tutorial I could find and I have basically done exactly what
they say, as far as I can tell but I am still getting this error when
I try to set a variabl
Oh, this soultion seems to be fine, but there is some additional
problem. In fact my array is something like the following:
Array
(
[0] => Array
(
[0] => Array
(
[Category] => Array
(
[
please ignore this line this have been copied wrong "
> Model:
>
>
>
> class Product extends AppModel {
>
>
>
> var $name = 'Product';
>
>
>
> var $primaryKey = 'product_id';
>
> #var $hasOne = array('Kattaxonomie');
>
> }
>
>
> ?>
>
>
>
> CTP:
>
>
> Add Product
>
>
>
>
> echo $form->create(
Model:
CTP:
Add Product
create('Product');
echo $form->input('product_articlenum', array('type' => 'hidden', 'value' =>
($last_proarticle['Product']['product_articlenum']+1)));
?>
input('Kat.kat_id', array('type' => 'select',
'multiple'=>'checkbox', 'options'=> $options, 'label'=>''))
Check that id in ctp have no disable=>disable.
Otherwise you have a typo someware.
Write you model action and ctp
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Gr
yes i did it...
therefore i don´t know why i got this error notice..
2010/6/30 Erik Starck
> Have you done this:
> http://book.cakephp.org/view/437/primaryKey
> in your Model?
>
>
> Erik Starck
>
>
> On Wed, Jun 30, 2010 at 11:49 AM, Davor Ilic wrote:
> > Hi cakers,
> >
> > i have a problem
I should've said - i'm using 1.2
On Jun 30, 11:02 am, "designv...@gmail.com"
wrote:
> hi there,
>
> I have (imo) a slightly tricky routing issue.
>
> I have a store setup with various artists and the artists have their
> own mini stores with custom layout etc...
>
> Now I want to route the follow
hi there,
I have (imo) a slightly tricky routing issue.
I have a store setup with various artists and the artists have their
own mini stores with custom layout etc...
Now I want to route the following;
www.domain.com/artist_slug -> /artists/view/artist_slug
and also:
www.domain.com/artist_s
Have you done this:
http://book.cakephp.org/view/437/primaryKey
in your Model?
Erik Starck
On Wed, Jun 30, 2010 at 11:49 AM, Davor Ilic wrote:
> Hi cakers,
>
> i have a problem by using this code:
>
> if(!empty($this->data)) {
>
> $product = $this->Product->save($
Hi cakers,
i have a problem by using this code:
if(!empty($this->data)) {
$product = $this->Product->save($this->data);
if(!empty($product)) {
$this->loadModel('Kattaxonomie');
i would use a library (lib) for cake1.3 (those can then use vendor
files if neccessary)
does it have to be in a model? or could that happen in the controller?
On 30 Jun., 11:40, Ernesto wrote:
> Hello.
> i need to import data from a CSV file in two of my app's model.
>
> what's the best place t
Using my app_controller I am trying to debug my session data. In all
my controllers I am receiving
Array
(
[Config] => Array
(
[userAgent] => c03e2e173822ed9de51b506bf80e16f8
[time] => 1277726475
[timeout] => 300
)
)
which is correct but 1 whi
I have similar thoughts on VPS after switching to one.
It's not as easy as shared hosting, but you can find tons of tutorials
online.
Btw, Big THX for the linode.com link. I was searching a affordable VPS
in US and these one is just sweet!
On Jun 29, 7:33 pm, Jon Bennett wrote:
> > It's actually
Hello.
i need to import data from a CSV file in two of my app's model.
what's the best place to code the import routine?
- a behavior
- a vendor class
- appModel
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this me
am also surprised by the fact that over time none of our users
complained about this problem ...
On Jun 30, 1:15 pm, Abhishek wrote:
> Hi,
> Whenever a user opens the index page for a controller .. e.g xyz.com/
> blogs ..
> IE is redirecting it to a 404 page .. however if i append a "/" in the
>
> I'm a bit sick of wingy .. people complaining about something they
> obtained for free as if they're owed something. Is it really too much
> to ask for users to think a bit, do functional tests on their code and
> read the ample documentation? (que attempted witty retort regarding
> well that's o
Hi,
Whenever a user opens the index page for a controller .. e.g xyz.com/
blogs ..
IE is redirecting it to a 404 page .. however if i append a "/" in the
end .. its working fine ..
Things are working fine .. in chrome an firefox .. am using cakephp
1.2 ( i know havent upgraded to 1.3 yet :( ...
Question: which is the preferred method; App::import or loadModel?
Jeremy Burns
Class Outfit
jeremybu...@classoutfit.com
http://www.classoutfit.com
On 30 Jun 2010, at 08:54, Erik Starck wrote:
> Hi,
> this is a bit more "cakeish":
>
> App::import('Product', 'Product');
> $this->Pro
Hi,
this is a bit more "cakeish":
App::import('Product', 'Product');
$this->Product = new Product();
Now you can use the model as you ordinary would with e.g.
$this->Product->find(...)
Erik Starck
@erikstarck
http://www.softwaresweden.com
On Tue, Jun 29, 2010 at 5:12 PM, WhyNot
77 matches
Mail list logo