Hi,
I'm looking for an experienced CakePHP 2.x developer, freelance, remote,
long-term.
Please LMK if you know somebody.
Thanks!
majna
--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
We will soon be closing this Google Group. But don't worry, we have
In HTML5 a browser will use HTTP header first, then BOM and finally HTML
meta to set encoding.
So check for missing in HTML head.
Add HTTP header e.g. in httpd.conf or .htaccess: AddDefaultCharset utf-8
or save files in "utf-8 without BOM" encoding.
On Monday, September 14, 2015 at 11:46:18 AM
See https://github.com/cakephp/cakephp/issues/2149
On Monday, September 29, 2014 12:43:53 PM UTC+2, Kan Samy wrote:
>
> Thanks for your reply Cherankrish.
> I am using Cloudfront CDN and I have created the distribution and
> generated the cdn url. Now I dont know where(which file) to map the cdn
"unable write 'default_aptutori_a' to Apc cache"
I guess your app/Config/core.php needs to be updated for 2.5.
APC as a default cache engine was removed two years ago, in 2.3
https://github.com/cakephp/cakephp/commit/2f7f5e13224537eaa4da6b825b1d106bebc35d05
On Tuesday, September 30, 2014 6:26
;
if ($field === 'role') {
// add some conditional logic etc.
// return role
}
return Hash::get($user, $field);
}
Cheers,
majna
On Tuesday, 16 September 2014 10:12:17 UTC+1, majna wrote:
>
> You can set a view variable in AppControler:
>
> pu
You can set a view variable in AppControler:
public function beforeRender() {
$this->set('auth', $this->Auth->user());
}
and use it in the view:
if ($auth) {
echo $auth['username'];
}
On Monday, September 15, 2014 6:53:32 PM UTC+2, Dave Edwards wrote:
>
> In CakePHP 3.x what is the corr
Response object *is* available in Helper, just use
$this->response->type('csv');
$this->response->download($this->filename);
$this->response->send();
Am Mittwoch, 11. Juni 2014 00:49:58 UTC+2 schrieb gloop:
>>
>> Hello i try to write an helper to create and download a CSV.
>>
>> Now i have the pr
In CakePHP blog tutorial Post is referring to a model (database table
"posts") holding all blog posts (articles).
So instad $u['Post']['username'] use $u['User']['username'] in your view
file.
Regarding paginate vs find('all'), see
http://book.cakephp.org/2.0/en/core-libraries/components/paginat
c:\wamp\www\myappname\app\Console>php cake.php bake all
should work on windows
On Wednesday, November 20, 2013 7:13:16 AM UTC+1, Victor Musvibe wrote:
>
> I am using cakephp 2.x and im trying Code Generation with Bake. When i try
> to cake bake all. Below are the errors i am getting in command li
Enable pdo-mysql extension in php.ini and restart web server.
http://www.php.net/manual/en/pdo.installation.php
majna
On Friday, October 11, 2013 10:26:37 AM UTC+2, Shikhar kumar wrote:
>
> Hello,
>
> I have installed cake php version 2.4.1 but I am stuck to install it.My
>
heck your web server access logs...
2013/5/6 leydis contreras
> No, already try with GET. What else could be???
>
>
> 2013/5/6 majna
>
>> Perhaps you are receiving GET request for IPN, not POST?
>>
>>
>> On Sunday, May 5, 2013 2:20:14 PM UTC+2, leydis
Perhaps you are receiving GET request for IPN, not POST?
On Sunday, May 5, 2013 2:20:14 PM UTC+2, leydis contreras wrote:
>
> I stil have the same issue :(
>
> El martes, 14 de junio de 2011 15:53:34 UTC+2, Ivan Rocha escribió:
>>
>> Hi,
>>
>> I'm trying to integrate a CakePHP website to PagSeguro
try with exec() http://www.php.net/manual/en/function.exec.php
exec("php /full_path_to/domain.com/app/Console/cake.php
NewsletterDaily", $output);
print_r($output);
On Thursday, April 4, 2013 4:42:17 PM UTC+2, Tomas Dobrotka wrote:
>
> Is is possible to call console command via HTTP? My
The value of self::started() can be "true" later on, when session is
actually started, right?
https://github.com/cakephp/cakephp/blob/master/lib/Cake/Model/Datasource/CakeSession.php#L187
I don't think it's a bug.
On Wednesday, March 13, 2013 1:26:19 AM UTC+1, Eduardo Barbosa Moreira
wrote:
>
>
Instead of Memcache you should use Memcached that supports Heroku SASL auth.
i.e https://github.com/kamisama/CakePHP-Memcached-Engine
- extend this engine, add auth option
http://www.php.net/manual/en/memcached.setsaslauthdata.php
here
https://github.com/kamisama/CakePHP-Memcached-Engine/blob/ma
Hi, here's my suggestions,
- change admin route to
Router::connect(‘/admin’, array(‘controller’ => ‘users’, ‘action’ =>
‘index’, ‘admin’ => true));
- replace your beforeRender() callback with:
public function beforeRender() {
if (isset($this->request->params['prefix']) &&
$this->re
Hi,
Change this part:
$_sendNewEmployeeEditMail = true;
$current_status = $this->Employee->field('standing_id');
if($current_status==1) {
$_sendNewEmployeeEditMail = false;
}
to something like this:
if ($this->Employee->field('standing_id')) {
try {
You can easily extend test shell like this
https://gist.github.com/majna/5073435
cake apptest core Utility/Hash --coverage-text --colors
On Saturday, March 2, 2013 4:47:34 PM UTC+1, Thiago Belem wrote:
>
> Hiho guys!
>
> I'm trying to get the code coverage statistics from
You are using APC *and* File cache?
https://github.com/cakephp/cakephp/blob/2.3.0/app/Config/bootstrap.php#L99
also note that APC memory is not shared between PHP CLI and Apache mod_php
(it is shared when php-fpm is used).
i.e. you cannot clear APC cache created by Apache from Cake console or vic
Try
http://book.cakephp.org/2.0/en/development/rest.html#accepting-input-in-other-formats
So, by following
http://book.cakephp.org/2.0/en/development/rest.html#the-simple-setup
//In app/Config/routes.php...Router::mapResources('seasons');
Router::parseExtensions(array('xml'));
and
It's --admin, not -admin (see cake bake controller --help)
1. uncomment Configure::write('Routing.prefixes', array('admin')); in
Config/core.php
2. cake bake controller Posts --public --admin
3. cake bake view Posts
On Tuesday, January 29, 2013 5:05:17 PM UTC+1, OSGMAL wrote:
>
> Hi newbie here
Hi,
Controller::render() returns CakeResponse object, so try
'html' => $this->render()->body()
On Friday, October 19, 2012 2:56:44 AM UTC+2, advantage+ wrote:
>
> My original function to return a JSON array no longer works with v2.1.3
>
>
>
> This worked in 1.3: loaded a form into a modal win
Hi,
You can append another path for plugins, something like this:
app/Config/bootstrap.php:
CakePlugin::load(array('Logger' => array('bootstrap' => true)));
app/Plugin/Logger/bootstrap.php:
App::build('Plugin' => array(CakePlugin::path('Logger') . 'Plugin'));
After that you can load Recaptcha p
Hi,
Are you reading 1.3 manual and code on 2.x ?
On Wednesday, September 5, 2012 5:21:12 PM UTC+2, nikunj kansara wrote:
>
> I am using cakephp, I working on Error Handling
>
> I have follow http://book.cakephp.org/1.3/en/view/1188/Error-Handling
>
> I have create AppError My code is
>
> app/app_
Should be plural "Users":
$this->extend('/Users/add');
Cheers!
On Monday, August 27, 2012 4:29:37 PM UTC+2, Steve Babs wrote:
>
> I have created .
>
>
> Views/Users/add.ctp
> ---
> fetch('title'); ?>
> fetch('content'); ?>
>
>
> Related actions
>
>
You must unset 'admin' prefix to redirect to non-admin URL:
$this->redirect(array('admin' => false,
'controller'=>'customers','action' => 'view',$id));
On Friday, August 24, 2012 9:18:47 PM UTC+2, Lucas Simon Rodrigues
Magalhaes wrote:
>
> Uhuhuuulll
>
> Thnx dude!!!
>
> Em sexta-feira, 24
Can you paste that test?
On Wednesday, August 15, 2012 11:10:39 PM UTC+2, Aaron Smyth wrote:
>
> I have a couple of tests that are expecting a controller's accompanying
> view to be available (they're checking for specific strings/regex patterns
> in the view) and all my tests are passing in the
Cake uses 'cake' i18n domain for translations in Form helper
__d('cake', 'January')
Use console to extract translations `cake i18n extract` or create cake.po
and add needed translations manually
On Tuesday, August 14, 2012 10:46:58 AM UTC+2, Alexander Schiebel wrote:
>
> I am currently crea
Try this, and read
http://book.cakephp.org/2.0/en/core-utility-libraries/xml.html
http://kurinchilamp.kurinchilion.com/feed";;
var $rss_item = array();
function read() {
$parsed_xml = Xml::build($this->feed_url);
// xml to array conversion
$this->rss_item
Email config for gmail
public $default = array(
'from' => array('m...@gmail.com' => 'My name'),
'host' => 'ssl://smtp.gmail.com',
'port' => 465,
'username' => 'm...@gmail.com',
'password' => 'xx',
'transport' => 'Smtp',
);
You have to enable
UTC+2, WhyNotSmile wrote:
>
> Hi manja, thanks for your help, but it's not inside a plugin, and changing
> the order didn't make any difference.
>
>
>
> On Wednesday, 1 August 2012 21:41:12 UTC+1, majna wrote:
>>
>> If it's not the plugin
If you need to run gc more often, you can create Session model and override
deleteAll() to fix that $expires
On Wednesday, August 1, 2012 11:21:23 PM UTC+2, majna wrote:
>
> Oh, It's in 1.3, but yeah, it's kind of a bug
> It should be time() + $expires as PHP passes gc_maxl
elated is put in between in the gc function.
>
>
> On Wednesday, August 1, 2012 9:32:38 PM UTC+2, majna wrote:
>>
>> By default there is 1% chance for gc to be called by PHP.
>> If you want to test if gc() is fired, increase *session.gc_probability *
If it's not the plugin issue, then Conference model is associated with
Confcommittee with wrong 'class' name.
You can test that if you change order in $uses:
public $uses = array('Confcommittee', 'Conference');
On Wednesday, August 1, 2012 10:35:12 PM UTC+2, m
> copying it.
>
>
>
> On Wednesday, 1 August 2012 20:58:42 UTC+1, majna wrote:
>>
>> Model Confcommittee is not found, so Cake creates an instance of AppModel.
>> You are using $uses property, so try to add in Model/Confcommittee.php:
>>
>> App::uses(&
Try
cake bake model Miko.MyModelName
You can always run
cake bake model
to see the list of available models (tables)
On Wednesday, August 1, 2012 8:50:37 AM UTC+2, Hugues Mary wrote:
>
> Hi
>
> I'm get trouble to bake a plugin with cakephp 2.x , I'm searching days a
> solution and did
Model Confcommittee is not found, so Cake creates an instance of AppModel.
You are using $uses property, so try to add in Model/Confcommittee.php:
App::uses('Confcommittee ', 'Model');
class Confcommittee extends AppModel { ...
Btw, you don't need to call exit() after redirect() in that controll
By default there is 1% chance for gc to be called by PHP.
If you want to test if gc() is fired, increase *session.gc_probability *close
to *divisor*:
http://www.php.net/manual/en/session.configuration.php#ini.session.gc-probability
Then watch SQL log for that query.
Anyway, expires should be curr
this one is simple and you have to generate it using cake console
(http://book.cakephp.org/2.0/en/console-and-shells.html)
https://github.com/majna/schema
On Saturday, June 30, 2012 5:02:30 PM UTC+2, Mahmoud Adel Farid wrote:
>
> i want a sample database like sakila or northwind with c
For URLs, you can use HtmlHelper::url() and for links
Home
HtmlHelper::link() benefit is decoding and converting special HTML entities
<-> characters
(when you link some code or URL)
On Sunday, July 1, 2012 6:15:00 AM UTC+2, Chetan Patel wrote:
>
> Hello,
>
> 1) I tend to have about 3 environmen
You can add validator form controller, added rules are not appended to
Model::validate property.
Try to debug :
$this->Campaign->validator()->add('advertiser_id', 'notEmpty', array(
'rule' => 'notEmpty',
'required' => true,
'message' => 'Assigning an advertiser is required'
));
$t
You can use AppController or MyPluginAppController beforeRender() callback
to check if controller name is 'CakeError'
and set $this->layout = 'MyPlugin.error'
or extend ExceptionRenderer
http://book.cakephp.org/2.0/en/development/exceptions.html#using-a-custom-renderer-with-exception-renderer-t
add 'required' =>true
http://book.cakephp.org/2.0/en/models/data-validation.html#required
On Monday, May 28, 2012 7:23:35 PM UTC+2, John wrote:
>
> Same on 2.1.3
>
> I can "fix" it by checking for an empty array on model or controller but I
> I guess this is not expected behavior, should I add a
*From:* cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] *On
> Behalf Of *majna
> *Sent:* Sunday, May 20, 2012 2:28 PM
> *To:* cake-php@googlegroups.com
> *Subject:* Re: Table 'cakehr.cake_errors' doesn't exists
>
>
>
> Instead of:
> echo $t
Instead of:
echo $this->Form->create(array('id'=>'search'));
try:
echo $this->Form->create(false, array('id'=>'search'));
On Sunday, May 20, 2012 1:04:14 PM UTC+2, Florin Trifu wrote:
>
> Hi Majna
>
> The entire content of menu
can you paste this code C:\wamp\www\test\app\View\Elements\menu.ctp(25)
and cake version
On Saturday, May 19, 2012 9:39:43 PM UTC+2, Florin Trifu wrote:
>
> Excuse me. I think I didn't understand what you wanted to say.
>
> You imply that the error is generated because the table test.cake_errors
That's prepared statements http://php.net/manual/en/pdo.prepare.php
used for better performance (compiled query plan can be cached)
On Thursday, May 3, 2012 5:37:22 PM UTC+2, johnericsutton wrote:
>
> At the end of
> http://book.cakephp.org/2.0/en/models/retrieving-your-data.html are some
> exam
even better:
if ($this->Paginator->hasPage(2))
// show next prev
On Thursday, April 26, 2012 8:32:27 PM UTC+2, Jeremy Burns wrote:
>
> You can also apply css styles to them, and use the right style to set
> display: none:
>
> echo $this->Paginator->first('<<', array('class' => 'arrow'), null,
Error handler docs:
* Using the built-in exception handling, you can log all the exceptions
* that are dealt with by ErrorHandler by setting `Exception.log` to true
in your core.php.
* Enabling this will log every exception to CakeLog and the configured
loggers.
Try http://plugins.cakephp.or
To test flash message, check session:
$this->assertEqual($this->TestController->Session->read('Message.flash.message'),
__('Saved.'));
On Sunday, March 11, 2012 10:13:10 PM UTC+1, andrewperk wrote:
>
> In case someone finds this post later, I found an easier way to test html
> tags rather
You can use Router like:
$url = Router::url(array('controller'=>'users', 'action'=>'login'));
$this-Session->setFlash(sprintf('Please login', $url));
On Friday, March 9, 2012 3:47:17 AM UTC+1, Thiago Silva wrote:
>
> Hello,
>
> I'm trying to insert links in the Session->setFlash method, but it's
see http://mark-story.com/posts/view/using-bcrypt-for-passwords-in-cakephp
On Friday, March 9, 2012 3:29:23 AM UTC+1, Sergei wrote:
>
> Hello,
>
> just started to upgrade my app to Cake 2.1 and noticed that my
> hashPasswords() method from User model no longer overrides hashing during
> login pr
You can use configuration files. Check this gist:
https://gist.github.com/1978200
On Saturday, March 3, 2012 5:41:42 PM UTC+1, U-Zyn Chua wrote:
>
> Hello,
>
> I've been a long time user of CakePHP (since pre v1) but have only
> recently checked out CakePHP 2.x.
>
> I'm writing a plugin for Cake
You have to install/configure mail server on windows.
Or use SMTP like gmail:
'host' => 'ssl://smtp.gmail.com',
'port' => 465,
'username' => 'exam...@gmail.com',
'password' => 'xxx',
'transport' => 'Smtp',
- make sure php_openssl is loaded in php.ini
On Tuesday, February 28, 2012 3:25:35 A
http://sandbox2.pseudocoder.com/demo/chat
--
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 to
ca
Just an idea...
Extend Mysql datasource:
- override connect():
try {
parent::connect();
} catch (Exception $e) {
return false;
}
- override constructor - set 'autoConnect' flag to false
Model::beforeFind():
$db = ConnectionManager::getDataSource('another')
http://book.cakephp.org/2.0/en/appendices/2-1-migration-guide.html
--
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 thi
Plugins are loaded in order you call/define them.
CakePlugin::loaded() just spit out *sorted *plugin list.
--
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 rela
Change this line:
$this->request->data['modified'] = false;
to:
$this->request->data['Device']['modified'] = false;
There's a tip in the book
http://book.cakephp.org/2.0/en/models/saving-your-data.html?highlight=modified%20field#model-save-array-data-null-boolean-validate-true-array-fieldlist-ar
require APP . ' Vendor' . DS . 'Swift' . DS . 'lib' . DS .
'swift_required.php';
What i wrong with that?
--
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
add to app/Config/bootstrap.php
phpinfo(1);
then run in console: cake
Look for 'Loaded Configuration File' and location of loaded php.ini (when
running PHP as CLI). Check if PDO is loaded...
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out t
This line duplicates layout:
echo $this->requestAction($url, array('bare'=>false , 'layout'=>
'/templates/business/default.ctp', 'return'));
Anyway, you should wrap views with layouts, this view/layout/requestAction
logic looks messy.
Can you write what are you trying to accomplish and paste
line where email.php is included
https://github.com/cakephp/cakephp/blob/master/lib/Cake/Network/Email/CakeEmail.php#L1021
--
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 th
if ($this->Paginator->hasPage(2)) {
// display prev, next, numers...
}
--
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
There's one more nice feature added -multi-model fieldList
support(whitelist)
https://github.com/cakephp/cakephp/commit/ba27c8c2016f47ab6d64c6dec6fb1d1491dd674f
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://a
please paste Request controller.
Try to call (form Request controller):
debug($this->Request);
and paste output (http://bin.cakephp.org)
--
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 he
could you paste more code?
--
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 to
cake-php+unsubscr
What is smtpOptions() method? You shoul read Cake docs on how to configure
email server outside controller, in Config/email.php
Anyway, add 'transport' => 'Smtp'
By default, Cake uses PHP mail() to send emails. I think xampp on windows
needs smtp server installed and configured to be able to do
I'm not sure wat are you doing, maybe
try {
..send email
} catch (SocketException $e) {
...redirect or inspect error: debug($e->getMessage());
}
--
Our newest site for the community: CakePHP Video T
I don't think Cake sets 'session.referer_check'. It's empty by default, so
check your phpinfo();
--
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 quest
Security.level is not used in 2.0 anymore...
--
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 to
you can use PHP output buffering and flush progress (if you can't use
cosnole/queues):
ob_implicit_flush(true);
foreach(...) {
echo 'updateMyProgress(' . $current .
',' . $total . ');'; // or jquery progress bar stuff
flush();
}
But it's a bit retarded and you can't stop this :)
--
You can load plugins form db in bootstrap.php too:
$pluginHooks = ClasRegistry::init('PluginHook')->find('all');
foreach ( $pluginHooks as $pluginHook ) ...
and then Configure::write('plugins', $plugins) for your hooks to be
available in views as Configure::read('plugins');
--
Our newest site
No, Cake does not set gc_maxlifetime.
btw, I've looked in few php frameworks and none of them change this setting,
but none of them either sets other timeouts (Cake changes cookie_lifetime
and has custom session timeout implementation)
Welcome to PHP session nightmare :)
--
Our newest site for
fixed typo:
Configure::write('Session', array(
'defaults' => 'php',
'ini'=>array('session.gc_maxlifetime'=>240*60)
));
--
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 hel
IMO Cake should set gc_maxlifetime to 'timeout' config (4 hours by default)
for 'cake' and 'php' handlers.
or use
Configure::write('Session', array(
'defaults' => 'php',
'ini'=>array('session..gc_maxlifetime'=>240*60)
));
But, some nix distros like debian, ubuntu etc. are us
app/Config/bootstrap.php:
CakePlugin::load('MyPlugin', array('bootstrap'=>true));
MyPlugin/Config/bootstrap.php:
$custom = array(
'datasource' => 'Database/Mysql',
'encoding' => 'utf8',
'persistent' => false,
'host' => 'localhost',
'login' => 'root',
Turn debug off, check if Cake caches files in app/tmp
--
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
Nice examples.
You can use AuthComponent::user('id') instead of CakeSession::read(
'Auth.User.id')
--
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 qu
There's a shell task for that I think.
On Wednesday, November 30, 2011 10:30:28 PM UTC+1, euromark wrote:
>
> 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 rewrit
Or use
'prefix' => Inflector::slug(APP_DIR)
--
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 to
https://gist.github.com/1361982
--
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 to
cake-php+uns
This chapter is about creating custom Auth:
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html?highlight=auth#creating-custom-authentication-objects
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions
>
> When I initiate the login() it succeeds every time even though it should
> most definitely be failing.
>
When you pass $user param, it's up to you to authenticate.
https://github.com/cakephp/cakephp/blob/2.0/lib/Cake/Controller/Component/AuthComponent.php#L511
I'll suggest you to create F
I don't see Post or Tag model in this app.
Check this line
https://github.com/ilmattodel93/IMattiDel93-s-Site/blob/master/app/Model/EpisodeRelease.php#L39
or other habtm associations.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP
http://book.cakephp.org/2.0/en/models/associations-linking-models-together.html#hasandbelongstomany-habtm
*"unique*: If true (default value) cake will first delete existing
relationship records in the foreign keys table before inserting new ones,
when updating a record. So existing associations
@sams and @AD7six
Yes, one element for each input. Performance is not issue here. Finally,
you can cache those elements as any other View::element() calls.
This is not only about applying Twitter Bootstrap. FormHelper is not
flexible enough and extending large methods is not best solution.
It'
Instead of using array based options for FormHelper inputs like: label,
before, after, div, format etc.
maybe HTML templates would be more friendly and easier to customize. For
each input type there will be one Cake element as template.
Here is an example, a proof of concept on how it may look l
Protect as to encode your source code?
Using http://www.ioncube.com/ or http://www.zend.com/en/products/guard/
--
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
maybe you missed to install php5-json PHP extension:
check your phpinfo()
apt install php5-json
/etc/init.d/php5-fpm restart
--
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
lookz like
- missing trailing slash ROOT.DS.'CommonModels' . DS
- model is not found zo Cake creates instance of AppModel. There's no
"special function" in this class therefore sql error. You can debug out
model and check if object is instance of app model,
like: debug($this->Post); from controll
Shortest one :)
$Model = ClassRegistry::init([Plugin].[Model]);
or
$posts = ClassRegistry::init('Blog.Post')->find('all');
--
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
wit
or
$this->controller()->Components->Session->read()
--
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
Maybe if you paste your AppController, models and controllers code related
to Event model and associated models? You can remove irrelevant methods etc.
http://bin.cakephp.org
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questio
I'm building on 2.0 for 10 months now and I like new folder convention. I
don't wanna ever go back :)
Only upgrade issue I had was SVN on Windows (case insensitive) but git-svn
and upgrade shell is a way to go.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.or
Can someone please confirm that redirect route is working as described in
2.0
http://book.cakephp.org/2.0/en/development/routing.html?highlight=router#redirect-routing
Some examples that should be working:
Router::redirect('/new/*', 'http://google.com', array('status' => 302));
Router::redirect(
Can you paste User model
http://bin.cakephp.org/
--
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 ema
there is 2.0 branch
https://github.com/CakeDC/comments/blob/2.0/Controller/Component/CommentsComponent.php
--
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 rela
If you look at PSR-0 and how classes are named (singular) FormHelper,
MediaView, BakeTask
then it make sense to pluralize Layouts, Elements, Scaffolds etc.
View\Layouts\rss
View\Layouts\Emails
View\Layouts\Emails\html
View\Emails\html
could be CamelCased imo.
--
Our newest site for the communi
It's PDO error.
Try to use 127.0.0.1 instead of localhost in database.php
When you run PHP from CLI - command line, usually there's another php.ini
file, so look for it.
Or google eg.
http://stackoverflow.com/questions/1435445/error-on-creating-connection-to-pdo-in-php
--
Our newest site for
1 - 100 of 513 matches
Mail list logo