-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crud usando ORM, configurando modulo de paginacao, configurado o banc…
…o de dados para a ORM
- Loading branch information
1 parent
f761300
commit 00b4ba3
Showing
8 changed files
with
135 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php defined('SYSPATH') or die('No direct script access'); | ||
|
||
class Model_Post extends ORM{ | ||
|
||
protected $_table_name = 'posts'; | ||
protected $_primary_key = 'id'; | ||
|
||
|
||
|
||
} | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php defined('SYSPATH') or die('No direct access allowed.'); | ||
|
||
return array | ||
( | ||
'default' => array | ||
( | ||
'type' => 'mysql', | ||
'connection' => array( | ||
'hostname' => 'localhost', | ||
'username' => 'root', | ||
'password' => 'adminadmin', | ||
'persistent' => FALSE, | ||
'database' => 'bd_blog', | ||
), | ||
'table_prefix' => '', | ||
'charset' => 'utf8', | ||
'profiling' => TRUE, | ||
), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule pagination
added at
d1c34d