some fix
This commit is contained in:
		| @@ -16,9 +16,17 @@ use Itguild\Tables\ViewJsonTable; | ||||
| use kernel\Controller; | ||||
| use kernel\IGTabel\ListJsonTableEloquentCollection; | ||||
| use kernel\IGTabel\ViewJsonTableEloquentModel; | ||||
| use Twig\Error\LoaderError; | ||||
| use Twig\Error\RuntimeError; | ||||
| use Twig\Error\SyntaxError; | ||||
| use Twig\TwigFunction; | ||||
|  | ||||
| class UserController extends Controller{ | ||||
|     /** | ||||
|      * @throws SyntaxError | ||||
|      * @throws RuntimeError | ||||
|      * @throws LoaderError | ||||
|      */ | ||||
|     public function actionCreate(): void | ||||
|     { | ||||
|         echo $this->twig->render('user_create.html.twig'); | ||||
| @@ -87,6 +95,11 @@ class UserController extends Controller{ | ||||
|         echo $this->twig->render('user_table.html.twig'); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * @throws RuntimeError | ||||
|      * @throws SyntaxError | ||||
|      * @throws LoaderError | ||||
|      */ | ||||
|     public function actionUpdate(): void | ||||
|     { | ||||
| //        $loader = new \Twig\Loader\FilesystemLoader(__DIR__.'/../views'); | ||||
|   | ||||
| @@ -3,6 +3,9 @@ namespace app\models; | ||||
|  | ||||
| use \Illuminate\Database\Eloquent\Model; | ||||
|  | ||||
| /** | ||||
|  * @method static where(string $string, $user_id) | ||||
|  */ | ||||
| class Question extends Model { | ||||
|     protected $table = 'question'; | ||||
|     protected $fillable = ['question','user_id']; | ||||
|   | ||||
| @@ -6,6 +6,8 @@ use Illuminate\Database\Eloquent\Model; | ||||
|  * @property string $username | ||||
|  * @property string $email | ||||
|  * @property string $password_hash | ||||
|  * @method static where(int[] $array) | ||||
|  * @method static find($id) | ||||
|  */ | ||||
| class User extends Model { | ||||
|     protected $table = 'user'; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user