This file contains hidden or 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
<CascadingAuthenticationState> | |
<DynamicRouter AppAssembly="@typeof(Program).Assembly"> | |
<Found> | |
<DynamicPage></DynamicPage> | |
</Found> | |
<NotFound> | |
Sorry no page | |
</NotFound> | |
</DynamicRouter> | |
</CascadingAuthenticationState> |
This file contains hidden or 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
using System; | |
using System.Linq; | |
using System.Linq.Expressions; | |
using GraphQL.Language.AST; | |
using GraphQL.Types; | |
public static class GQLHelper | |
{ | |
public static Expression<Func<T, T>> GraphQLFields<T>(ResolveFieldContext<object> ctx) | |
{ |
This file contains hidden or 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
<?php | |
class NewsModel extends Model { | |
var $permission_table; | |
function NewsModel() | |
{ | |
parent::Model(); | |
$this->load->database(); |
This file contains hidden or 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
<?php | |
class Blog extends Controller { | |
function Blog($page=0) | |
{ | |
parent::Controller(); | |
$this->load->library('session'); | |
$this->load->database(); | |
$this->load->library('form_validation'); |
This file contains hidden or 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
<?php | |
/*TODO Make comment about the goal with this class and quick examples!!!!!*/ | |
class User extends Controller { | |
var $pages; | |
function User() |
This file contains hidden or 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
<?php | |
class BlogModel extends Model { | |
var $permission_table; | |
function BlogModel() | |
{ | |
parent::Model(); | |
$this->load->database(); |
This file contains hidden or 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
<?php | |
class UserModel extends Model { | |
function UserModel() | |
{ | |
parent::Model(); | |
$this->load->library('auth'); | |
$this->load->database(); | |
$this->load->library('session'); |
This file contains hidden or 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
<?php if (!defined('BASEPATH')) exit('No direct script access allowed'); | |
/*TODO Make comment about the goal with this class and quick examples!!!!! | |
All those code-duplicated $CI = & get_instance(); references, need to do something about it. | |
Make use of the now null initialized $this->CI variable, so the procedure doesn't get repated all the time. | |
*/ | |
/* | |
Auth class is an helper to easy interact with user information. |