The alternative is moving your assets to the web root, instead of symlinking
them, I guess.
Cheers,
Graham Weldon
http://grahamweldon.com
e. gra...@grahamweldon.com
p. (+61) 0407 017 293
Skype: grahamweldon
On Thursday, 1 December 2011 at 5:03 PM, zuha wrote:
> I don't believe symlink will be
I don't believe symlink will be possible (or at a minimum would be a big
annoyance) because I run an unlimited number of apps from custom
directories and each one contains its own theme directory. I would much
rather just figure out where to do something like...
$fileName = str_replace('%20'
I'd do some parsing in the model before sending the data to the view. Not sure
how your data is set up, but my instinct would be to not include the favourites
in the find, then find them separately. Then either parse over the favourites
array or use Set::extract, then set a new field in the Post
This won't affect your theme assets if you follow the book, and symlink them to
your web root:
http://book.cakephp.org/2.0/en/views/themes.html?highlight=symlink#increasing-performance-of-plugin-and-theme-assets
"
it’s recommended that you either symlink or copy out plugin/theme assets to
d
Okay so I've hit a problem and I have no idea how to fix it. In Cake 1.3 a
file name like /theme/default/images/my image.jpg would work. In Cake2.0
the url changes to a standard url in the browser address bar (ie.
/theme/default/images/my%20image.jpg - with the space replaced with %20).
So n
What CakePHP version are you on?
Cheers,
Graham Weldon
http://grahamweldon.com
e. gra...@grahamweldon.com
p. (+61) 0407 017 293
Skype: grahamweldon
On Thursday, 1 December 2011 at 4:20 PM, MetZ wrote:
> Hi..
> Tried it, did not work either, only the first email in array get the
> email.
>
> A
Hi..
Tried it, did not work either, only the first email in array get the
email.
Any other suggestions??
-Tom
On 1 Des, 06:03, Graham Weldon wrote:
> Have you tried an array of email address?
>
> $this->Email->to = array('du...@rmail.com', 'du...@email.com');
>
> Cheers,
> Graham Weldonhttp://g
Have you tried an array of email address?
$this->Email->to = array('du...@rmail.com', 'du...@email.com');
Cheers,
Graham Weldon
http://grahamweldon.com
e. gra...@grahamweldon.com
p. (+61) 0407 017 293
Skype: grahamweldon
On Thursday, 1 December 2011 at 4:02 PM, MetZ wrote:
> Hi all!
>
> I
Hi all!
I am having a problem, when sending email with multiple reveivers in
$this->Email->to
It will only send to one adress (the first one =>
email_numb...@gmail.com), why is that? any suggestions!?!
$this->Email->to = 'email_numb...@gmail.com, email_numb...@gmail.com';
$this->Email->subject =
I figured it out... I had to manually give me select 'name' =>
'data[Student][period_id]', and 'id' => 'StudentPeriodId'. I'm sure
I've strayed from cake's naming conventions a bit, thats why it didn't
hook up automatically.
On Nov 30, 3:53 pm, GG wrote:
> When I change it to period_id the entire
Hello, I'm having a hard time displaying different text in a view
depending on if a user who is logged in has marked the post as a
favorite or not.
Users can have many posts, posts belong to users.
Users can have many favorites, favorites belong to users and posts.
In my index view I loop through
When I change it to period_id the entire select box disappears.
See how in the source code, it populates the correct information, but
when it submits, the "option value" doesn't get sent to the correct
field. It actually doesn't get sent anywhere. After submit, my table
has a new entry that looks
I guess you made a mistake in your form
why is it not echo $this->Form->input('period_id');
(note the _id)?
tip:
let cake bake your code. this way less mistakes can be made and such
as above easily be avoided
On 1 Dez., 00:09, GG wrote:
> The form is successfully adding a new entry to the table
The form is successfully adding a new entry to the table, the user_id
is correct, however, the period_id is being stored as 0. They are both
int(11).
Problem I need to tell cake to: store the value of the option
being sent into the period_id column.
Solution?? Thanks for your help!
He
http://bakery.cakephp.org/articles/dankroad/2011/01/30/integrate_amazon_simple_email_service_ses_into_existing_application
On Dec 1, 12:18 am, toby1kenobi wrote:
> Hi there,
>
> Has anyone got the Amazon SES PHP SDK working in CakePHP 2? I had it
> installed in 1.3, but I can't seem to figure
I only thing I am wondering about that plugin is, whether it supports
assert compression by using the default
$this->Html->css/script syntax
Or if one would have to completely rewrite all views/layouts here. (to
$this->AssetCompress->...)
>From the look into the code and docs it seems this is neces
Hi there,
Has anyone got the Amazon SES PHP SDK working in CakePHP 2? I had it
installed in 1.3, but I can't seem to figure out how you do the
equivalent of:
App::import('Vendor', 'AmazonSES', array('file' => 'amazon' . DS .
'sdk.class.php'));
in the new version (the above is what I did to m
Thanks guys, I'll give Mark Story's plugin a try
(https://github.com/markstory/asset_compress/tree/2.0). This supports YUI
Compression which I was particularly looking for. Thanks for the info.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the n
Hugo Massaroli
2011/11/30 phpMagpie
> Option 2 does not look normalized to me as data1, data2, data3 should be
> in an associated table Process hasMany Data <-> Data belongsTo Process.
>
It's normalized because data1, data2 and data3 are always the same fields,
they don't change with the proce
Also to clarfiy, I have dumped $this->data at the view load time and have
verified that all the data needed for the automagic population is present.
So the problem is not at the query level, but would appear to be at the
Helper level.
--
Our newest site for the community: CakePHP Video Tutori
Thank you for answering. I was afraid the association might be too deep.
Just to clarify one thing, the model is not named Session, I was just
trying to describe the nature of my problem using model names here that
would make more sense to people not intimately familiar with the project.
--
O
Thank you euromark but the console not create a nice posts with
comments. I need a little code example how to do it. :-)
On 30 nov, 12:19, euromark wrote:
> please take a lot at the book starting right about
> here:http://book.cakephp.org/2.0/en/console-and-shells/code-generation-wit...
>
> On 3
Did you ever get someone to help you with this?
Simon
--
View this message in context:
http://cakephp.1045679.n5.nabble.com/cakephp-ecommerce-work-tp4634234p5036192.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
Our newest site for the community: CakePHP Video Tutorials
htt
please take a lot at the book starting right about here:
http://book.cakephp.org/2.0/en/console-and-shells/code-generation-with-bake.html?highlight=bake
On 30 Nov., 17:15, joserafael wrote:
> No, the blog tutorial cover only post. I dont know who to do it
>
> On 30 nov, 07:12, phpMagpie wrote:
I use in the console "cake bake" all the time. The relation Has Many
and Belongs To is Ok. But when create a new comment I must to select
the post in a select field and no directly. This way is not elegant
and functional.
On 29 nov, 16:54, euromark wrote:
> you shoudnt use "scaffolding" but bake
No, the blog tutorial cover only post. I dont know who to do it
On 30 nov, 07:12, phpMagpie wrote:
> Does the blog tutorial not cover all of this?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.or
I have posted this question in StackOverflow and Jose Lorenzo answered
me this:
"The actual correct answer should be using mock objects instead of
actually login the user in manually:
$this->controller = $this->generate('Users', array(
'components' => array('Auth' => array('user')
It worked, but in addition I have to set the model alias:
$this->User->alias = 'User';
because a simple `$this->User->read(null, 1)` raised an error saying
that 'User.a_column' couldn't be found.
On Nov 24, 3:22 pm, José Lorenzo wrote:
> When mocking a model it is recommended that you pass the
a) you dont have to submit it to cake
if you really want to go down that road, build your own class and put
it in
/app/Lib/Network/Email/
CakePHP will then use your custom class instead
b) if you wont to know if it works, try it - but I woudn't recommend
it
On 30 Nov., 06:32, localhost wrote:
>
you could probably wright a behavior which could "correct" the issue
at runtime
until it is fixed in the not so near future :)
On 30 Nov., 06:59, Jeremy Burns | Class Outfit
wrote:
> Thanks - this is exactly the issue I am facing. I agree with you; this sort
> of renders the conditional associa
Same user, same browser - different roles at the same time :)
You can create kind of impersonation $this->Auth->login($this->data);
Look at this thread
http://book.cakephp.org/view/1261/login
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the ne
I dont understand your code - where do you actually save your data?
as of right now you only validate it...
On 30 Nov., 12:17, Mamdoohi wrote:
> ok.
> I have two model ( user, employee ).
> and use this code
>
> if($this->Employee->saveAll($this->data,array('validate'=>'only')){
> $this->Ses
Hi, you still looking for a CakePhp developer?
Regards
Marcus
On 29 November 2011 20:17, Graham Weldon wrote:
> You could try contacting the Cake Development Corporation:
> http://cakedc.com
>
> Cheers,
> Graham Weldon
> http://grahamweldon.com
> e. gra...@grahamweldon.com
> p. (+61) 0407 017
@Andras: That's an awful lot of work,
@ Jordy: I recommend you learn how to use Containable which makes the task
as simple as:
$this->User->find('first', array(
'conditions'=>array('User.id'=>$uid),
'contain'=>array('Pet'=>'Post')
));
Simple and efficient!
HTH, Paul.
http://book.cakephp.
Option 2 does not look normalized to me as data1, data2, data3 should be in
an associated table Process hasMany Data <-> Data belongsTo Process.
When editing you echo each records id and therefore the save call will
update the correct record.
echo $this->Form->input("Process.0.id");
echo $this
Sorry, you have lost me.
I suspect you are over-thinking or misunderstanding what it is you're
trying to achieve.
HTH, Paul.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
ok.
I have two model ( user, employee ).
and use this code
if($this->Employee->saveAll($this->data,array('validate'=>'only')){
$this->Session->setFlash('Saved');
$this->redirect('/');
}else{
$this->Session->setFlash('error');
}
but when send incorrect data, saveAll method don't save d
Option 2 does not look normalized to me as data1, data2, data3 should be in
an associated table Process hasMany Data <-> Data belongsTo Process.
When editing you echo each records id and therefore the save call will
update the correct record.
echo $this->Form->input("Process.0.id");
echo $this
Does the blog tutorial not cover all of this?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email t
That's a very deeply associated field, Cake is possibly struggling to
complete the automagic that deep.
You may struggle with a model called Session due to clash with the Session
component.
AFAIK, any ajax created or deleted fields will mess up the Security Hash as
it's generated on page load,
yes, same joomla. but joomla have two different session.
if this approach is not correct, please said me.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP relat
> As others have said when you call your models save() method it will check
validation by default.
save() will not validate associated data as it only saves the current
model. As I stated previously saveAll() will validate associated model
data in a properly formatted data array.
HTH, Paul.
I was already wondering about the AssetHelper some time ago
http://stackoverflow.com/questions/8233532/asset-helper-and-protected-view-scripts-in-cakephp-2-0/8249645#8249645
seems like McCurry's helper would need a massive rewrite in order to
work again
so mark story's would probably be the best o
In what situation would you not want the newly authenticated user to
overwrite the old one?
Are you wanting an admin and a non-admin user to be logged into the same
site from the same computer/browser at the same time?
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.ca
Hi everyone
Thank you so much for your advice, i tried it all and experimented a
little to work out what was wrong and it turned out to be a bit from
each persons advice :-).
To summarise, in case it helps someone else in the future, here is
what i had wrong:
* Model files were pluralised e.g. i
You can put the the redirect in your *AppController beforeFilter* and just
check* $this->Session->read("Auth.User.role_id")*.
Jordan
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help oth
Hello Sam,
in my second post i figured out with pseudo names how it works at the
moment. I add the plugin vendor subfolder to the generally vendor
pathes. Now is the class via App::uses findable.
But i want only extend the plugins vendor pathes per App::build.
On 28 Nov., 20:30, Sam Sherloc
https://github.com/markstory/asset_compress/tree/2.0
Andras Kende
On Nov 30, 2011, at 12:52 AM, mikeottinger wrote:
> Hi All, I've been looking at cakephp 2.0 and wondered if any of the existing
> plugins written previously for js/css compression worked with cakephp 2.0.
> Does anyone have any
You could easily convert this to Cake 2: https://github.com/mcurry/asset
On Nov 29, 10:52 pm, mikeottinger wrote:
> Hi All, I've been looking at cakephp 2.0 and wondered if any of the
> existing plugins written previously for js/css compression worked with
> cakephp 2.0. Does anyone have any plug
49 matches
Mail list logo