Re: White screen

2015-06-13 Thread Md Bayezid Alam
Check first the requirement is configured on ubuntu http://book.cakephp.org/3.0/en/installation.html#requirements . specially intl extension and mbstring extension On Sat, Jun 13, 2015 at 10:01 AM, joelro tahqu...@gmail.com wrote: I am running an Ubuntu 14.04 server and only get a white screen

How to set Authorization wise view in the Form in CakePHP-3.0

2015-05-28 Thread Md Bayezid Alam
Hi All, I want to set an authorization in the registration of a form using CakePHP 3.0. Before asking here, i tried below things but no luck in my favor. Suppose i have role field in the usersTable like 'superuser', 'admin', 'user'. I want to provide permission superuser to make all the things

Re: How to set Authorization wise view in the Form in CakePHP-3.0

2015-05-28 Thread Md Bayezid Alam
Thanks a lot. its working now. Is there any other easiest way to do so? On Thu, May 28, 2015 at 8:50 PM, euromark dereurom...@gmail.com wrote: check() and comparison is really a bad idea the first returns bool, how should that ever === to a string? wrapping that with !empty() makes this

Re: Cakephp 3.0

2015-05-16 Thread Md Bayezid Alam
Hi, You can load Model by using $this-loadModel('YourTablenames'); Thanks On Sat, May 16, 2015 at 12:35 PM, Karthik Keyan karky...@gmail.com wrote: Hi How to use multiple tables in single controller in *cakephp 3.0 * -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

Re: CakePHP 3.0 - Confusion comes from

2015-04-16 Thread Md Bayezid Alam
As this process has been deprecated during the RC, so hoping soon to update the docs otherwise it will make a huge confusions among the readers. :) On Thu, Apr 2, 2015 at 7:31 PM, Dave Edwards goo...@bubbletoonz.com wrote: Hi Farid, I'm not decrying the value or usefulness of the

Re: cakephp 3.0 - which approach is best to get instance of a Table using loadModel or TableRegistry

2015-04-12 Thread Md Bayezid Alam
Thanks a lot [?] On Sun, Apr 12, 2015 at 2:00 AM, José Lorenzo jose@gmail.com wrote: Answered in stackoverflow On Saturday, April 11, 2015 at 8:00:02 PM UTC+2, Bayezid Alam wrote: Hi, A question arises on me is that which approach is the best from the performance sense to get an

cakephp 3.0 - which approach is best to get instance of a Table using loadModel or TableRegistry

2015-04-11 Thread Md Bayezid Alam
Hi, A question arises on me is that which approach is the best from the performance sense to get an instance of a table in CakePHP-3.0 which is not a controller's default one between loadModel or TableRegistry. 1. $this-loadModel('Articles'); OR2. TableRegistry::get('Articles'); Already asked

Re: CakePHP 3.0 - Confusion comes from

2015-03-31 Thread Md Bayezid Alam
Got it [?] Thanks On Tue, Mar 31, 2015 at 6:49 PM, Farid Aditya farid.adi...@gmail.com wrote: no cookbook tutorial/example is fine maybe $this-Model-newEntity(); is to create new object with blank attribute or create blank object container $this-Model-patchEntity($oldObjectAttr ,

Re: CakePHP 3.0 - Confusion comes from

2015-03-30 Thread Md Bayezid Alam
Good point.. [?] On Tue, Mar 31, 2015 at 2:28 AM, Dave Edwards goo...@bubbletoonz.com wrote: Thanks for the reply. In that case not only is the blog tutorial wrong, but the manual is misleading as well. In http://book.cakephp.org/3.0/en/orm/saving-data.html patchEntity is not introduced

Re: CakePHP 3.0 - Confusion comes from

2015-03-29 Thread Md Bayezid Alam
That was my understanding too. On Mon, Mar 30, 2015 at 1:15 AM, Dave Edwards goo...@bubbletoonz.com wrote: Why has the first method (which is the correct one) got both $this-Articles-newEntity() and $this-Articles-patchEntity() when you are saving a new record? I thought that

Re: CakePHP 3.0 - Confusion comes from

2015-03-28 Thread Md Bayezid Alam
PR created by #2560 On Sat, Mar 28, 2015 at 6:43 PM, euromark dereurom...@gmail.com wrote: It would be cool if you could PR the corrections so that others don't trip over it, too. mark Am Samstag, 28. März 2015 10:35:52 UTC+1 schrieb Bayezid Alam: Ok, Thanks for reply.. :) On Sat,

Re: CakePHP 3.0 - Confusion comes from

2015-03-28 Thread Md Bayezid Alam
Ok, Thanks for reply.. :) On Sat, Mar 28, 2015 at 3:24 AM, euromark dereurom...@gmail.com wrote: The latter is deprecated, this changed during RC and as such the tutorial needs some updating. Thats all there is to it :) Mark Am Freitag, 27. März 2015 15:37:26 UTC+1 schrieb Bayezid Alam:

Re: Cake3 - Blog Tutorial Part 3 error founds

2015-03-27 Thread Md Bayezid Alam
Ohh, Thanks, But there was not any info to create the table first. On Fri, Mar 27, 2015 at 2:01 PM, José Lorenzo jose@gmail.com wrote: You need to create the categories table first. On Friday, March 27, 2015 at 5:34:46 AM UTC+1, Bayezid Alam wrote: Hi, I am getting below error

CakePHP 3.0 - Confusion comes from

2015-03-27 Thread Md Bayezid Alam
Hi, A confusion comes on my mind regarding the adding something on CakePHP 3.0 As example given on below link's in the add function. http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/part-two.html#adding-articles public function add() { $article =

Cake3 - Blog Tutorial Part 3 error founds

2015-03-26 Thread Md Bayezid Alam
Hi, I am getting below error while executing *bin/cake bake model Categories* Note: i followed all the above things from http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/part-three.html ubuntu@ubuntu:/var/www/html/cake3blog$ bin/cake bake model Categories Welcome to CakePHP v3.0.0

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-14 Thread Md Bayezid Alam
i can't understand. could you please give me an example if you have? Note: *I want to create a new record at Costs FixedCosts against Units ID but don't want to add a new record at UnitsTable* Thanks in advance Bayezid On Sun, Dec 14, 2014 at 3:36 AM, José Lorenzo jose@gmail.com wrote:

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-13 Thread Md Bayezid Alam
Thanks a lot, but it not saving to Costs FixedCosts Table somehow, i tried, even if its not executing after $this-request-is public function add_cost($uId){ if (!$uId){ throw new NotFoundException(__('Unit id Not found, try with a valid ID')); } $unitId =

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-12 Thread Md Bayezid Alam
Hello Lerenzo, Please find the UnitsTable and debug($unit) as follows: *UnitsTable:* ?php namespace App\Model\Table; use Cake\ORM\Table; class UnitsTable extends Table { public function initialize(array $config) { $this-table('units'); $this-addBehavior('Timestamp');

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-12 Thread Md Bayezid Alam
, 'fixed_cost' = true ], 'original' = [], 'virtual' = [], 'errors' = [], 'repository' = 'Units' } Note: A new record is being saved in UnitsTable but i don't want to Thanks Bayezid On Fri, Dec 12, 2014 at 10:35 PM, Md Bayezid Alam bayezid...@gmail.com

3.0 - How to add a form data using its primarykey to its associated tables

2014-12-11 Thread Md Bayezid Alam
Hi, i have Tables : Units hasOne costs hasOne fixed_costs i want to add data to costs and fixed_costs table using units's primary key from units Controller. i did below things but its creating a new record at unit Table instead of using primaryKey Form at unitsController: ?php echo

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-11 Thread Md Bayezid Alam
HI May i get a suggestion on this? I did google but found nothing. Thanks Bayezid On Thu, Dec 11, 2014 at 10:07 PM, Md Bayezid Alam bayezid...@gmail.com wrote: Hi, i have Tables : Units hasOne costs hasOne fixed_costs i want to add data to costs and fixed_costs table using units's

Cakephp 3.0 - How to apply condition at find list method

2014-11-20 Thread Md Bayezid Alam
Dear All, How do i apply condition at find('list') at Cakephp 3.0? i have a Companies, Departments and Employees Companies hasMany Department. Companies hasMany Employees Departments has Many Employees. i want to add Employees from company want to get departments list of that company. My Add

Re: Cakephp 3.0 - How to apply condition at find list method

2014-11-20 Thread Md Bayezid Alam
this: http://book.cakephp.org/3.0/en/orm/query-builder.html#the-query-object try this: $departments = $this-Companies-Departments-find('list') -select(['id', 'name']) -where(['id !=' = 1]) -order(['created' = 'DESC']); Em Thu Nov 20 2014 at 12:07:22, Md Bayezid

Re: Can't visit controllers/* Cakephp 3

2014-10-24 Thread Md Bayezid Alam
Thanks a lot, it was a configuration issue. I did just below configuration Directory /var/www Options Indexes FollowSymLinks AllowOverride None Require all granted /Directory to Directory /var/www/html Options Indexes FollowSymLinks AllowOverride all Require all granted

3.0 Database Error : SQLSTATE[HY000] [14] unable to open database file

2014-09-29 Thread Md Bayezid Alam
Dear All, i am getting the subjected Error for beta-2 of cake3, while first browsing from localhost. sub-hints: If you are using SQL keywords as table column names, you can enable identifier quoting for your database connection in config/app.php. *Notice: * If you want to customize this error

Re: 3.0 Database Error : SQLSTATE[HY000] [14] unable to open database file

2014-09-29 Thread Md Bayezid Alam
Sorry, i got the answer, it was an issue of permission.. Thanks On Mon, Sep 29, 2014 at 9:42 PM, Md Bayezid Alam bayezid...@gmail.com wrote: Dear All, i am getting the subjected Error for beta-2 of cake3, while first browsing from localhost. sub-hints: If you are using SQL keywords

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-20 Thread Md Bayezid Alam
is not working here On Mon, May 19, 2014 at 9:28 PM, Md Bayezid Alam bayezid...@gmail.comwrote: I added Timestamp behavior at ArticlesTable public function initialize(array $config) { $this-addBehavior('Timestamp'); } but same fatal error is showing *Error: Call to a member

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-20 Thread Md Bayezid Alam
: what do you mean it is working as gmt? On Monday, May 19, 2014 7:55:10 PM UTC+2, Bayezid Alam wrote: Thanks Jose, its working as GMT but format() function is not working here On Mon, May 19, 2014 at 9:28 PM, Md Bayezid Alam bayezid...@gmail.comwrote: I added Timestamp behavior

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread Md Bayezid Alam
Thanks a lot, i changed from username to user_id and its working perfectly but the second one is not working here is my table structure *CREATE TABLE IF NOT EXISTS `profiles` (* * `id` int(11) NOT NULL AUTO_INCREMENT,* * `name` varchar(40) NOT NULL,* * `address` varchar(70) NOT NULL,* *

Re: 3.0 - Cake not connecting to MySql DB

2014-05-19 Thread Md Bayezid Alam
Thanks a lot everyone, somehow it is working for me.. On Sun, Mar 16, 2014 at 9:38 PM, Leandro Machado Pereira llperei...@gmail.com wrote: The error composer timeout, see this: https://getcomposer.org/doc/04-schema.md#config

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread Md Bayezid Alam
Nope, i did not. On Mon, May 19, 2014 at 7:32 PM, José Lorenzo jose@gmail.com wrote: Did you add the Timestamp behavior to your Profiles table? On Monday, May 19, 2014 3:17:39 PM UTC+2, Bayezid Alam wrote: Thanks a lot, i changed from username to user_id and its working perfectly

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread Md Bayezid Alam
Thanks Jose, its working as GMT but format() function is not working here On Mon, May 19, 2014 at 9:28 PM, Md Bayezid Alam bayezid...@gmail.comwrote: I added Timestamp behavior at ArticlesTable public function initialize(array $config) { $this-addBehavior('Timestamp

3.0 - Saving data using Form with HasOne relationship

2014-05-18 Thread Md Bayezid Alam
Dear All, I am new trying from 3.0. I have made User hasOne Profile Association with DB *users [ id, username, password, created, modified ]* ** *profiles [id, name, address, email, mobile, user_id, created, modified]* In UsersTable.php *class UsersTable extends Table{* *public function

Re: 3.0 - How to print/debug from Controller like Cake 2.xx

2014-05-01 Thread Md Bayezid Alam
wrote: I tried by pr/debug($this-request-data); pr/debug($article) but showing nothing On Wed, Apr 30, 2014 at 11:51 PM, Md Bayezid Alam bayezid...@gmail.comwrote: i tried but It's showing nothing.. Could you please let me know how can i get this? Thanks On Wed, Apr 30, 2014 at 11:24 PM

3.0 - How to print/debug from Controller like Cake 2.xx

2014-04-30 Thread Md Bayezid Alam
Dear All, Is there any way to print from Controller? For example, I have a form like ?php echo $this-Form-create($article); echo $this-Form-input('title'); echo $this-Form-input('body', ['rows' = '3']); echo $this-Form-button(__('Save Articles')); echo $this-Form-end(); ?

Re: 3.0 - How to print/debug from Controller like Cake 2.xx

2014-04-30 Thread Md Bayezid Alam
i tried but It's showing nothing.. Could you please let me know how can i get this? Thanks On Wed, Apr 30, 2014 at 11:24 PM, euromark dereurom...@gmail.com wrote: And what is your problem? The function still exists and can be used the same way. Am Mittwoch, 30. April 2014 16:27:00 UTC+2

Re: 3.0 - How to print/debug from Controller like Cake 2.xx

2014-04-30 Thread Md Bayezid Alam
I tried by pr/debug($this-request-data); pr/debug($article) but showing nothing On Wed, Apr 30, 2014 at 11:51 PM, Md Bayezid Alam bayezid...@gmail.comwrote: i tried but It's showing nothing.. Could you please let me know how can i get this? Thanks On Wed, Apr 30, 2014 at 11:24 PM, euromark

Re: 3.0 - Cake not connecting to MySql DB

2014-03-04 Thread Md Bayezid Alam
after updating, Its not working, i may missing anything. 'Datasources' = [ 'default' = [ 'className' = 'Cake\Database\Connection', 'driver' = 'Cake\Database\Driver\Mysql', 'persistent' = false, 'host' = 'localhost', 'login' = 'loginname', 'password' = 'password', 'database' = 'cake3_db', 'prefix'